mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Add support for Goqual zigbee switch(1~6gang) (#1783)
* Update homeassistant.js * Update utils.js
This commit is contained in:
@@ -803,6 +803,21 @@ const mapping = {
|
||||
'12050': [configurations.switch, configurations.sensor_power],
|
||||
'ROB_200-004-0': [configurations.light_brightness],
|
||||
'RH3040': [configurations.sensor_battery, configurations.binary_sensor_occupancy],
|
||||
'GLSK3ZB-1711': [configurations.switch],
|
||||
'GLSK3ZB-1712': [switchWithPostfix('top'), switchWithPostfix('bottom')],
|
||||
'GLSK3ZB-1713': [switchWithPostfix('top'), switchWithPostfix('center'), switchWithPostfix('bottom')],
|
||||
'GLSK6ZB-1714': [
|
||||
switchWithPostfix('top_left'), switchWithPostfix('bottom_left'),
|
||||
switchWithPostfix('top_right'), switchWithPostfix('bottom_right'),
|
||||
],
|
||||
'GLSK6ZB-1715': [
|
||||
switchWithPostfix('top_left'), switchWithPostfix('center_left'), switchWithPostfix('bottom_left'),
|
||||
switchWithPostfix('top_right'), switchWithPostfix('bottom_right'),
|
||||
],
|
||||
'GLSK6ZB-1716': [
|
||||
switchWithPostfix('top_left'), switchWithPostfix('center_left'), switchWithPostfix('bottom_left'),
|
||||
switchWithPostfix('top_right'), switchWithPostfix('center_right'), switchWithPostfix('bottom_right'),
|
||||
],
|
||||
'3306431P7': [configurations.light_brightness_colortemp],
|
||||
'AC08559': [configurations.light_brightness_colortemp],
|
||||
'LVS-ZB15S': [configurations.switch],
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ function toLocalISOString(dDate) {
|
||||
|
||||
const postfixes = [
|
||||
'left', 'right', 'center', 'bottom_left', 'bottom_right', 'l1', 'l2',
|
||||
'top_left', 'top_right', 'white', 'rgb', 'system', 'top', 'bottom',
|
||||
'top_left', 'top_right', 'white', 'rgb', 'system', 'top', 'bottom', 'center_left', 'center_right',
|
||||
];
|
||||
|
||||
function flatten(arr) {
|
||||
|
||||
Reference in New Issue
Block a user