home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.78k stars 30.49k forks source link

Times of the Day - after power back all are off not reactivated automatically #128865

Open lebinho opened 5 days ago

lebinho commented 5 days ago

The problem

Today I was doing some decluttering in the office and needed to turn off my Home Assistant by unplugging it from socket without shutting down. During evening I've noticed that my office lamp that works based on Time of the day combined with presence sensor stopped triggering. I went to check if the presence is detected (yes, this works as a charm) so then checked the second condition variables and turned out that helpers are off all the time. I was under the impression that they should have restarted/reloaded themselves. But they are off all the time. Once I've reloaded one of them lamp went on. Is this a bug ? If not anyone can guide me how to make them reload on for example hourly basis to make sure that they will always work ? Zrzut ekranu 2024-10-20 223943

What version of Home Assistant Core has the issue?

core-2024.10.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Times of the Day

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tod

Diagnostics information

home-assistant_tod_2024-10-20T20-52-23.903Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 days ago

tod documentation tod source

gjohansson-ST commented 4 days ago

That seems indeed as sometihng that should work. Can you provide some more details about one of them that didn't work and what was the time when you unplugged and replugged it?

lebinho commented 4 days ago

None of them worked. What I can say tho, is that after updating the core when all were somehow "reloaded" so far they work ok. So still to prevent anything I would like to restart them but not experienced enough to know what should I do to reload them for example every 60 mins. This would allow me to make sure they should work correctly. Anyone can guide me ? Or at least point to a good example so I can learn and replicate logic ?