PimDoos / ha-sessy

Home Assistant integration for Sessy (Smart Energy Storage SYstem)
27 stars 10 forks source link

[Feature Request] configure sensor.sessy_XXXX_state_of_charge entity to track statistics #96

Closed RogierSchuring closed 1 month ago

RogierSchuring commented 1 month ago

I am unable to add the state of charge to a Statistics graph Card in HA. HA tells me that the developer should configure the entity so they know that they need to track statistics for that entity. Could you do so or maybe give a hint on how to add the state of charge percentage to a graph?

Link HA gives: https://developers.home-assistant.io/docs/core/entity/sensor#long-term-statistics

PimDoos commented 1 month ago

The state of charge sensor already sets a device_class and state_class, so you should see statistics being generated. In my instance, I am able to add these sensors just fine. image image

Are you sure you are not mixing sensors with different units in the statistics card? Can you check the developer tools for statistics to see if the entities have any issues?

RogierSchuring commented 1 month ago

Hmm... my bad. Was not expecting that two sensors with different units could not be displaid in the same statistics card. When trying to add it in a new statistics card, it shows up.

RogierSchuring commented 1 month ago

Closed