I have a automation that has a condition to check if script is not running and is after 4am and before sunrise. For some reason the script will not run from automation but does if I manually start it. On the Overview page it shows “Execute” next to the script which I think might be why it is not working since it is not in an off state. I have not found any information in the documentation that mentions this “Execute” indicator. My condition is:
condition:
condition: and
conditions:
- condition: state
entity_id: script.morning_motion
state: ‘off’
- condition: or
conditions:
- condition: time
after: ‘03:40:00’
- condition: sun
before: sunrise
action:
- service: script.turn_on
entity_id: script.morning_motion