Closed tvandergeer closed 3 years ago
Need to give it a look later. As this value is returned directly with this timezone by zonneplan.
Think I will go for the same approach as HA does for sensor.date
https://www.home-assistant.io/integrations/time_date/
Will assume the date we get from the api should be in the Europe/Amsterdam
timezone and format the timestamp to a date based on that
Yes, that looks like a good solution! Is this something that each user needs to do manually or is it possible to make this part of the integration?
Current main should give better dates https://github.com/fsaris/home-assistant-zonneplan-one#installing-mainbeta-version-using-hacs
ok, https://www.home-assistant.io/integrations/sensor/#device-class timestamp
works better :)
Currently the highest_yield_at value is presented as a date. In our case:
At first I thought that the highest recorded value was at April 10 around 22:00, but actually April 10 was a very bad day (in terms of solar energy production). Turns out that you should read this value as a date. The timestamp is in UTC time and the CET time (with DST) is +2 hours. In this case it would be 2021-04-11 00:00:00. And that is correct. Up until now April 11 2021 was the best day.