gtdiehl / iotawatt_ha

IoTaWatt for Home Assistant
Apache License 2.0
16 stars 16 forks source link

Entity sensor.main_2_wh from integration iotawatt has state class total_increasing, but its state is not strictly increasing. #33

Open jherby2k opened 2 years ago

jherby2k commented 2 years ago

I get this error in the logs for every input:

Entity sensor.xxxx_wh from integration iotawatt has state class total_increasing, but its state is not strictly increasing.

Do we even need these .wh sensors? Aren't the accumulating ones just better?

OzGav commented 2 years ago

I think the issue would be resolved by changing the state class to totalinstead of total_increasing as per here: https://developers.home-assistant.io/blog/2021/09/20/state_class_total

I have the issue because my solar results in the totals decreasing at times. I assume you have some similar situation