Update converters.

This commit is contained in:
Koen Kanters
2020-05-09 16:10:31 +02:00
parent 2a6659582b
commit 739e6fb66b
4 changed files with 260 additions and 1285 deletions
+3 -1
View File
@@ -947,7 +947,9 @@ const mapping = {
'HGZB-07A': [cfg.light_brightness_colortemp_colorxy],
'E1524/E1810': [cfg.sensor_action, cfg.sensor_battery],
'GL-C-006': [cfg.light_brightness_colortemp],
'GL-C-007': [cfg.light_brightness_colorxy_white],
'GL-C-007-1ID': [cfg.light_brightness_colortemp_colorxy],
'GL-C-007-2ID': [lightEndpoint('light_brightness_colortemp_colorxy', 'rgb'),
lightEndpoint('light_brightness', 'white')],
'GL-C-007S': [cfg.light_brightness_colorxy_white],
'GL-C-007/GL-C-008': [cfg.light_brightness_colortemp_colorxy_white],
'100.424.11': [cfg.light_brightness_colortemp],
+1 -1
View File
@@ -191,7 +191,7 @@ class EntityPublish extends Extension {
const msg = result.state;
if (endpointName) {
for (const key of ['state', 'brightness']) {
for (const key of ['state', 'brightness', 'color', 'color_temp']) {
if (msg.hasOwnProperty(key)) {
msg[`${key}_${endpointName}`] = msg[key];
delete msg[key];
+255 -1282
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -46,7 +46,7 @@
"semver": "*",
"winston": "*",
"zigbee-herdsman": "0.12.86",
"zigbee-herdsman-converters": "12.0.85"
"zigbee-herdsman-converters": "12.0.86"
},
"devDependencies": {
"eslint": "*",