Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.2 kB
96
Indexable
Never
alias: Washing Machine & Tumble Dryer Status
description: ""
trigger:
  - platform: numeric_state
    entity_id: sensor.washing_machine_current_power
    for:
      hours: 0
      minutes: 0
      seconds: 30
    above: "10"
    id: Washing Machine On
  - platform: numeric_state
    entity_id: sensor.washing_machine_current_power
    for:
      hours: 0
      minutes: 1
      seconds: 0
    below: "1.3"
    id: Washing Machine Off
  - platform: state
    entity_id:
      - input_boolean.washing_machine_status
    from: "on"
    to: "off"
    id: Washing Complete Message
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: Washing Machine On
        sequence:
          - service: input_boolean.turn_on
            data: {}
            target:
              entity_id: input_boolean.washing_machine_status
      - conditions:
          - condition: trigger
            id: Washing Machine Off
        sequence:
          - service: input_boolean.turn_off
            data: {}
            target:
              entity_id: input_boolean.washing_machine_status
    default: []
mode: single