Automation will only trigger in near time, not if a couple of hours later

Hi,

I’m new to Home Assistant and like it a lot so far. Now, I have run in to a problem and hope that more advanced users might be able to help me. :blush:

I have created an automation to run a script at 10am every workday.

When I test the automation (by changing it to a time the next minutes and wait) it triggers. However, if I set it to a time a couple of hours away and wait it wont run!

Any thought on why? Does Home Assistant go into sleep mode or something?

I have my Home Assistant set up on a Raspberry Pi 3. The automation I use looks like this:

- alias: schedule_medium_program
  trigger:
    platform: time
    at: '10:00:10'
  condition:
  - condition: time
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
  action:
    service: script.turn_on
    entity_id: script.vacuum_medium

How do you know the automation is not triggering? Are you looking in the log or logbook? Are you watching for the effects of script.vacuum_medium? If the latter, is it possible it’s running but the way you’re checking you can’t really tell? FYI, a running script can’t be restarted while it’s running. So, e.g., if the automation triggers and tries to run the script, but if it’s already running, it won’t restart - it would just cause an error.

I’d suggest looking at the logbook, history, home-assistant.log, etc. to try and see where the problem is. If you’re not sure how to interpret them, feel free to share the details.

FWIW, I don’t see anything obviously wrong with your automation.

Thank you @pnbruckner for all the suggestions!

Somehow it’s working now. Unfortunately I cannot tell what was the problem - or the solution.