Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
715 B
6
Indexable
Never
alias: Testing 5 min
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.alarm
    to: "off"
    for:
      hours: 0
      minutes: 5
      seconds: 0
    id: off-5
  - platform: state
    entity_id:
      - input_boolean.alarm
    to: "off"
    for:
      hours: 0
      minutes: 10
      seconds: 0
    id: off-10
condition: []
action:
  - if:
      - condition: trigger
        id: off-5
    then:
      - service: notify.notify
        data:
          message: The alarm has been off 5 mins
  - if:
      - condition: trigger
        id: off-10
    then:
      - service: input_boolean.turn_on
        data: {}
        target:
          entity_id: input_boolean.alarm
mode: single