mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-26 12:39:56 +00:00
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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user