Add support for Goqual zigbee switch(1~6gang) (#1783)

* Update homeassistant.js

* Update utils.js
This commit is contained in:
GuGu927
2019-08-11 14:13:44 +02:00
committed by Koen Kanters
parent fcb6c37ef0
commit c1e8dd990f
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -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
View File
@@ -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) {