Improve support for Centralite 4257050-ZHAC dimmable plug (#2187)

* Add HA power sensors for Centralite 4257050-ZHAC outlet.

* Enable dimming in HA for Centralite 4257050-ZHAC outlet.

* Add new HA sensors for the Iris 3210-L plug.
This commit is contained in:
Tommy Goode
2019-10-25 20:10:14 +02:00
committed by Koen Kanters
parent 4983048191
commit ca19b77e8c
+2 -1
View File
@@ -535,7 +535,7 @@ const mapping = {
'50043': [cfg.switch],
'50045': [cfg.light_brightness],
'AV2010/22': [cfg.binary_sensor_occupancy, cfg.sensor_battery],
'3210-L': [cfg.switch, cfg.sensor_power],
'3210-L': [cfg.switch, cfg.sensor_power, cfg.sensor_current, cfg.sensor_voltage],
'3320-L': [cfg.binary_sensor_contact, cfg.sensor_temperature, cfg.sensor_battery],
'3326-L': [cfg.binary_sensor_occupancy, cfg.sensor_temperature, cfg.sensor_battery],
'7299355PH': [cfg.light_brightness_colorxy],
@@ -558,6 +558,7 @@ const mapping = {
'MG-AUWS01': [switchWithPostfix('left'), switchWithPostfix('right')],
'9290002579A': [cfg.light_brightness_colortemp_colorxy],
'4256251-RZHAC': [cfg.switch, cfg.sensor_power],
'4257050-ZHAC': [cfg.light_brightness, cfg.sensor_power, cfg.sensor_current, cfg.sensor_voltage],
'STS-PRS-251': [cfg.binary_sensor_presence, cfg.sensor_battery],
'4058075816794': [cfg.light_brightness_colortemp],
'4052899926158': [cfg.light_brightness],