I am trying to run a automation where every 2 hours it turns on, wait 1 hour, turn off. Then the trigger should happen again in 2 hours but it never did. This is what I got so far:
alias: Pet fountain
description: ''
trigger:
- platform: time_pattern
hours: '2'
condition: []
action:
- type: turn_on
device_id: efa075ce528e125e51524d77850f7526
entity_id: switch.plants_humidifier_2
domain: switch
- delay:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
- type: turn_off
device_id: efa075ce528e125e51524d77850f7526
entity_id: switch.plants_humidifier_2
domain: switch
mode: single