home-assistant-vimar
home-assistant-vimar copied to clipboard
Energy consumption not working
Hi,
thanks for this integration. I used it for control lights on my HA.
I also have an energy guard for monitoring energy consumption that works perfectly on Vimar webserver website but is always 0kw on home assistant.
Can you help me? Thanks!
The problem is related to how the entities related to Vimar's energy consumption sensors are generated. In order for Home Assistant to correctly detect these sensors, as reported in the documentation, the device_class must be set to "energy" while it is currently set to "power", and the state_class parameter must be present, which is currently absent. home assistant related documentation
I changed these values adding this text inside configuration.yaml but nothing changed:
homeassistant:
customize:
sensor.carichi_globale_controllo_consumo_totale:
device_class: energy
state_class: total
unit_of_measurement: kWh
I reloaded HA but the values is always 0.
@andreacocci95 In the evening I'll try to make the change directly on the plugin code to correctly set the detected elements and I'll let you know.
Thank you! 😁
@alanmastro any news?