Guys, I made a very simple automation with the UI and it never triggers. I had a look at it for a 1000 times and I can’t see why its not working. I have other similar ones with no issue and this one just fails…
I like to restart HA every day at 09:00 hrs:
alias: 'HA Restart every day at 09:00'
description: ''
trigger:
- at: '09:00:00'
platform: time
condition: []
action:
- service: homeassistant.restart
mode: single
I made this with the UI, I didn’t do any YAMling. It doesn’t ever trigger. Does anyone sees what I am missing?
Ok, good. Manually triggering it skips the automation’s trigger and simply executes the action. Therefore your test confirmed the action works and the fault lies with the Time Trigger.
However, I don’t see anything obviously wrong with the Time Trigger’s syntax.
Yes that could be and its complicated. However I have similar automations (snapshot and cleanup) on a similar automation without an issue.
wrt clock. I work from Brasil but my Redberry is in Portugal. That is sometimes confusing. Nevertheless even if the time of triggering is wrong it still should trigger but nada!
Not sure if it matters, but the only thing that stands out is that mine doesn’t have any quotes around the time.
alias: Restart Home Assistant Nightly @3:45 AM - Every Sun
description: ''
trigger:
- at: 03:45:00
platform: time
condition:
- condition: time
weekday:
- sun
action:
- service: homeassistant.restart
mode: single
I am on 2020.12.2 too. I still don’t trust it. Did some tests with time settings which did work. Now I have set it at my required time at 08:30 in the morning. So let’s see…
We both use the same version and tested the same automation, created the same way with the Automation Editor, and with a quoted time value. Yet it fails for you and succeeds for me.
Given that I do not have to remove the quotes to make it work, suggests something else is amiss with your system’s configuration.
All the more reason to believe the suggested Solution is more of a Band-Aid than an actual solution. It has always been permitted to enter the time with or without quotes.
There’s something else going on here but the relevant clues are missing.