Add device '412015' from Legrand. DIN power consumption module. (#3739)

* Add device '412015' from Legrand. DIN power consumption module.

Add device '412015' from Legrand. DIN power consumption module. Complementary for this pull request https://github.com/Koenkk/zigbee-herdsman-converters/pull/1313

* Update homeassistant.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
jd1900
2020-06-14 14:01:02 +02:00
committed by GitHub
co-authored by Koen Kanters
parent 1dd3523e64
commit 67c43fcee3
+11
View File
@@ -144,6 +144,16 @@ const cfg = {
device_class: 'lock',
},
},
'binary_sensor_power_alarm_active': {
type: 'binary_sensor',
object_id: 'power_alarm_active',
discovery_payload: {
payload_on: true,
payload_off: false,
value_template: '{{ value_json.power_alarm_active}}',
device_class: 'power',
},
},
// Sensor
'sensor_illuminance': {
@@ -1462,6 +1472,7 @@ const mapping = {
'12126': [cfg.switch],
'067775': [cfg.switch, cfg.sensor_power],
'064888': [cfg.switch],
'412015': [cfg.sensor_power, cfg.binary_sensor_power_alarm_active],
'gq8b1uv': [cfg.light_brightness],
'GZCGQ01LM': [cfg.sensor_battery, cfg.sensor_illuminance, cfg.sensor_illuminance_lux],
'9290018215': [cfg.light_brightness],