mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 05:24:29 +00:00
Update converters.
This commit is contained in:
@@ -204,7 +204,7 @@ const cfg = {
|
||||
object_id: 'power',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'W',
|
||||
icon: 'mdi:factory',
|
||||
icon: 'mdi:flash',
|
||||
value_template: '{{ value_json.power }}',
|
||||
},
|
||||
},
|
||||
@@ -213,7 +213,7 @@ const cfg = {
|
||||
object_id: 'current',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'A',
|
||||
icon: 'mdi:power-plug',
|
||||
icon: 'mdi:current-ac',
|
||||
value_template: '{{ value_json.current }}',
|
||||
},
|
||||
},
|
||||
@@ -222,10 +222,19 @@ const cfg = {
|
||||
object_id: 'voltage',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'V',
|
||||
icon: 'mdi:flash',
|
||||
icon: 'mdi:alpha-v',
|
||||
value_template: '{{ value_json.voltage }}',
|
||||
},
|
||||
},
|
||||
'sensor_energy': {
|
||||
type: 'sensor',
|
||||
object_id: 'energy',
|
||||
discovery_payload: {
|
||||
unit_of_measurement: 'kW',
|
||||
icon: 'mdi:power-plug',
|
||||
value_template: '{{ value_json.energy }}',
|
||||
},
|
||||
},
|
||||
'sensor_action': {
|
||||
type: 'sensor',
|
||||
object_id: 'action',
|
||||
@@ -1074,7 +1083,7 @@ const mapping = {
|
||||
'9290018187B': [cfg.light_brightness_colortemp_colorxy],
|
||||
'1741830P7': [cfg.light_brightness_colortemp_colorxy],
|
||||
'Z3-1BRL': [cfg.sensor_action, cfg.sensor_brightness],
|
||||
'HSIO18008': [cfg.binary_sensor_gas, cfg.binary_sensor_battery_low],
|
||||
'HS1CG-E': [cfg.binary_sensor_gas, cfg.binary_sensor_battery_low],
|
||||
'LED1842G3': [cfg.light_brightness],
|
||||
'SR-ZG9001K4-DIM2': [cfg.sensor_battery, cfg.sensor_click],
|
||||
'ICZB-IW11SW': [cfg.switch],
|
||||
@@ -1316,6 +1325,8 @@ const mapping = {
|
||||
'U202SRY2KWZB': [switchWithPostfix('l1'), switchWithPostfix('l2')],
|
||||
'93999': [cfg.light_brightness],
|
||||
'HLC614-ZLL': [switchWithPostfix('l1'), switchWithPostfix('l2'), switchWithPostfix('l3')],
|
||||
'EMIZB-132': [cfg.sensor_power, cfg.sensor_voltage, cfg.sensor_current, cfg.sensor_energy],
|
||||
'S9ZGBRC01': [cfg.sensor_action, cfg.sensor_battery],
|
||||
};
|
||||
|
||||
Object.keys(mapping).forEach((key) => {
|
||||
|
||||
Reference in New Issue
Block a user