Add a home assistant start trigger that checks against the time. That’ll solve that problem.
Edit: Marius beat me to it
Edit2: I think your original template would have worked. With just a restart time. However it wouldn’t have worked if you restarted between 22 and 23. So if you just changed the time check to look at 22:59.9 you’d be good to go
Just an update on the TOD problem. It is as I expected. The problem occurs when you have a TOD type binary sensor with these conditions.
period starts before midnight and ends after midnight
you restart HA after midnight but before the period ends
The result is that the sensor goes off after a HA restart
@petros briliant template sensor works great. It turns off for less than a minute and then back on again. Used as a condition in an automation that is not a real problem. The automation is not working while you restart either. It is all back within a minute.
@petros. Challenge.
This also fails
- platform: tod
name: Darkness
after: sunset
before: sunrise
You have an idea for a template work around for this?
Anyone seeing issues with streaming camera videos after ~2021.5 update? I’ve got 2 foscam’s that as you watch them lag/reload periodically and you can see the time stamp on the video roll back about 10 seconds. If you let the stream play continuously, it basically never catches up and keeps going back in time to a point where you started about 10s behind live and get up to 30min + behind.
Logger: homeassistant.config
Source: config.py:443
First occurred: May 12, 2021, 11:00:12 PM (2 occurrences)
Last logged: 10:13:07 AM
Invalid config for [automation]: expected float for dictionary value @ data[‘action’][0][‘delay’][‘minutes’]. Got None. (See /config/configuration.yaml, line 37).
After removing the delay the automation is ok again.
Hmm… for me after performing at least 15 of HA restarts I need to summarize:
Where a HA restart on HA Core 2021.4.6 took only up to 2 minutes for 4 out of 5 reboots,
now on HA Core 2021.5.3 one single reboot takes at least 6 minutes for 5 out of 5 reboots (100 % of time).
I am also having somewhat similar issue. Upgraded from 2021.5.2 to 2021.5.3 and over the night CPU usage shot to 100% on Proxmox VM. Server then crash. Revert to 2021.5.2 and all back to normal except CPU is still slightly more than 50%. For previous 2021.4.x versions, CPU will idle around 10%. Not sure what is causing that.
Update: After 12hrs of reverting to 2021.5.2, CPU is at 10%.
How much time is needed for the database migration process? It’s more than 24hrs i see the database temporary files (-shm and -wal files) updating every minute…
Is it normal?
and have not changed since a couple of years I’ve enlarged some of them (not these btw) to make the pinchable, but hardly believe size matters in here?
Do believe it is mostly Safari, my Chrome browser and the App show fine, where Safari blanks on these images (used on custom card Button).