ZNCZ04LM extended attributes support (#3761)

* ZNCZ04LM extended attributes support

* Styles fixes

* Style fix

* Tabs

Co-authored-by: divanikus <d1pro@yandex.ru>
This commit is contained in:
Andrey 2020-06-17 20:54:08 +03:00 committed by GitHub
parent 249bcff7d1
commit 76745ca5c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1397,7 +1397,10 @@ const mapping = {
'Eco-Dim.07': [cfg.light_brightness], 'Eco-Dim.07': [cfg.light_brightness],
'DIYRuZ_rspm': [cfg.switch, cfg.sensor_action, cfg.sensor_power, cfg.sensor_current], 'DIYRuZ_rspm': [cfg.switch, cfg.sensor_action, cfg.sensor_power, cfg.sensor_current],
'ZG9101SAC-HP-Switch': [cfg.switch], 'ZG9101SAC-HP-Switch': [cfg.switch],
'ZNCZ04LM': [cfg.switch, cfg.sensor_power], 'ZNCZ04LM': [
cfg.switch, cfg.sensor_power, cfg.sensor_consumption,
cfg.sensor_current, cfg.sensor_voltage, cfg.sensor_temperature,
],
'ZNCZ12LM': [cfg.switch, cfg.sensor_power], 'ZNCZ12LM': [cfg.switch, cfg.sensor_power],
'GL-S-007ZS': [cfg.light_brightness_colortemp_colorxy], 'GL-S-007ZS': [cfg.light_brightness_colortemp_colorxy],
'4058075816732': [cfg.light_brightness_colortemp_colorxy], '4058075816732': [cfg.light_brightness_colortemp_colorxy],