#First Automation newbie

3 messages · Page 1 of 1 (latest)

rotund kettle
#

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?

heady talonBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.