TimSoethout / goodwe-sems-home-assistant

Sensor for Home Assistant pulling data from the GoodWe SEMS API for solar panel production metrics.
89 stars 38 forks source link

last_reset attribute for new energy entity not getting set properly #47

Closed kaizersoje closed 3 years ago

kaizersoje commented 3 years ago

I noticed the last_resetattribute for the newly created energy entity does not seem to be changing. Is this as expected?

image

TimSoethout commented 3 years ago

Seems to be fine: https://developers.home-assistant.io/docs/core/entity/sensor/#properties It's the total kWh for your inverter, which only grows, so the specific start time is not important. Reset is for power meter for example that reset when installing a new one or something.

Feel free to make a pull request if you want to use a more sane/recent value there or you think it is wrong. :)