ldotlopez / ha-ideenergy

ideenergy integration for home-assistant
GNU General Public License v3.0
74 stars 13 forks source link

Add Power Attribute to Sensor #4

Closed ad-ha closed 2 years ago

ad-ha commented 2 years ago

Adding the power retrieved from the last reading as an attribute to the sensor. This implementation (instead of a separate sensor) does not require an additional query to the REST API

TO-DO:

ad-ha commented 2 years ago

Esto sería el resultado final después de añadir este atributo:

image

Y con templating (con el código actual) se podría sacar un sensor separado:

{{ state_attr('sensor.i_de_es002xxxxxx_accumulated', 'Last Power Reading') }};