mk-maddin / wattpilot-HA

This is a custom component to allow control of Fronius Wattpilot wallbox/electro vehicle charging devices in Homeassistant.
Apache License 2.0
59 stars 10 forks source link

Request for change state class for ID_Chip_X value #31

Open gednet opened 11 months ago

gednet commented 11 months ago

In next release please change state_class for ID_Chip_X energy counters entities. Better if will be total_increasing, because i don't want to lost counters value after Wattpilot factory reset.

Thanks :)

mk-maddin commented 11 months ago

should be easily implementable - but let me read and test more deeply into the sensor state_class first.. Just today I stumbled across the following error which makes me think that maybe state_class "total" with "last_reset" is the better one (instead of total_increasing) at least for sensor.wattpilot_connection_charged entity

Entity sensor.wattpilot_connection_charged from integration wattpilot has state class total_increasing, but its state is not strictly increasing. Triggered by state 5.198601739 (5.201606539) with last_updated set to 2023-10-12T09:55:26.030144+00:00. Please report it to the custom integration author.

gednet commented 11 months ago

Ok, let me know if i can help you with id_chip entities in that case. Maybe i will can check or test something for you.