jeroenterheerdt / HADailySensor

Sensor for Home Assistant that gets reset at midnight
MIT License
76 stars 19 forks source link

datetime_of_occurrence is null after restart of HomeAssistant #65

Open gerrieg opened 2 months ago

gerrieg commented 2 months ago

HomeAssistant 2024.9.1

I'm using min/max with a local temperature sensor. Everything works until i restart HomeAssistant. The datetime_of_occurrence is null until the sensor is updated, all other attributes are ok.

github-actions[bot] commented 2 weeks ago

Stale issue message

waclaw66 commented 2 weeks ago

Still an issue

jeroenterheerdt commented 2 weeks ago

Not sure I follow, sorry. How can the datetime be set if he sensor wasn't updated yet?

waclaw66 commented 2 weeks ago

@jeroenterheerdt The problem is that value of attribute datetime_of_occurrence of a sensor doesn't survive HA restart, other attributes do.