Hello, trying to turn on a relay every 2 hours for 30 seconds then turn off. This automation must run from 10am till 6pm
Sometimes relay don't stop ...
Here is my code:
alias: Acqua al camaleonte
description: ""
trigger:
- platform: time_pattern
hours: /2 - platform: time
at: "10:01:00"
condition: - condition: time
before: "18:00:00"
after: "10:00:00"
action: - type: turn_on
device_id: 2560f61772977dee91aa505dea18d7c3
entity_id: c6a095e56146230eeb2e83419b128607
domain: switch - delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0 - type: turn_off
device_id: 2560f61772977dee91aa505dea18d7c3
entity_id: c6a095e56146230eeb2e83419b128607
domain: switch
mode: single
What's wrong?