Update sensor_power.

This commit is contained in:
Koenkk 2018-05-21 11:50:14 +02:00
parent f886259f92
commit 26f378237f
2 changed files with 3 additions and 3 deletions

View File

@ -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),
};
}
},

View File

@ -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': {