Časovač
Turn on switch at 08:00.
Turn off switch at 08:30.
alias: example
trigger:
- id: 'on'
platform: time
at: '08:00:00'- id: 'off'
platform: time
at: '08:30:00'
condition: []
action:- service: 'switch.turn_{{ trigger.id }}'
target:
entity_id: switch.whatever
If Home Assistant is restarted at any time between 08:00 and 08:30, this technique ensures the switch is turned off at 08:30. Various other techniques may be reset by a restart and fail to turn off the switch.