Made a quick timed automation:
alias: Aquarium schedule
description: ""
triggers:
- at: "09:30:00"
id: morning
trigger: time
- at: "18:30:00"
id: evening
trigger: time
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: morning
- condition: state
entity_id: switch.aquarium
state: "off"
sequence:
- target:
entity_id: switch.aquarium
action: switch.turn_on
data: {}
- conditions:
- condition: trigger
id: evening
- condition: state
entity_id: switch.aquarium
state: "on"
sequence:
- target:
entity_id: switch.aquarium
action: switch.turn_off
data: {}
- conditions:
- condition: template
value_template: "{{ trigger is none }}"
sequence:
- target:
entity_id: switch.aquarium
action: switch.toggle
data: {}
mode: single```
The purpose is to turn the aquarium light on and off at scheduled times.
I"m trying to 'test' the automation, by having it toggle when the automation is ran manually, but trigger_id doesn't seem to exist when ran manually?