mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 18:39:09 -07:00
Update sensor_power.
This commit is contained in:
parent
f886259f92
commit
26f378237f
@ -320,8 +320,8 @@ const parsers = [
|
||||
state: data['100'] === 1 ? 'ON' : 'OFF',
|
||||
power: precisionRound(data['152'], 2),
|
||||
voltage: precisionRound(data['150'] * 0.1, 1),
|
||||
consumption: precisionRound(data['149'], 2), // ??
|
||||
temperature: precisionRound(data['3'], 2), // ??
|
||||
consumption: precisionRound(data['149'], 2),
|
||||
temperature: precisionRound(data['3'], 2),
|
||||
};
|
||||
}
|
||||
},
|
||||
|
@ -115,7 +115,7 @@ const configurations = {
|
||||
unit_of_measurement: 'Watt',
|
||||
icon: 'mdi:flash',
|
||||
value_template: '{{ value_json.power }}',
|
||||
json_attributes: ['voltage'],
|
||||
json_attributes: ['voltage', 'temperature', 'consumption'],
|
||||
},
|
||||
},
|
||||
'sensor_action': {
|
||||
|
Loading…
Reference in New Issue
Block a user