Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Energy consumption not working #74

Open
andreacocci95 opened this issue Nov 26, 2023 · 5 comments
Open

Energy consumption not working #74

andreacocci95 opened this issue Nov 26, 2023 · 5 comments

Comments

@andreacocci95
Copy link

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.

Screenshot_2023-11-26-01-34-01-62_3aea4af51f236e4932235fdada7d1643.jpg

Screenshot_2023-11-26-01-34-23-17_14f923dba7aa743f2820ba9cc8abb3d9.jpg

Can you help me?
Thanks!

@alanmastro
Copy link

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

@andreacocci95
Copy link
Author

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

image

I reloaded HA but the values is always 0.

@alanmastro
Copy link

@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.

@andreacocci95
Copy link
Author

Thank you! 😁

@andreacocci95
Copy link
Author

@alanmastro any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants