weeemrcb

Toggle - PS1 Venting

Aug 16th, 2026
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.16 KB | Source Code | 0 0
  1. alias: Toggle - PS1 Venting
  2. description: ""
  3. triggers:
  4.   - entity_id:
  5.      - input_boolean.PS1_venting
  6.     to:
  7.      - "on"
  8.     id: PS1-on
  9.     trigger: state
  10.     from:
  11.      - "off"
  12.   - entity_id:
  13.      - input_boolean.PS1_venting
  14.     to: "off"
  15.     id: PS1-off
  16.     trigger: state
  17.     from: "on"
  18.     enabled: true
  19.   - alias: When Fan Timer Ends
  20.     event_type: timer.finished
  21.     event_data:
  22.       entity_id: timer.PS1_venting_timer
  23.     id: timer-PS1-end
  24.     trigger: event
  25. conditions: []
  26. actions:
  27.   - choose:
  28.       - conditions:
  29.           - condition: trigger
  30.             id:
  31.              - PS1-on
  32.         sequence:
  33.           - action: script.PS1_venting_timer
  34.             data: {}
  35.       - conditions:
  36.           - condition: trigger
  37.             id:
  38.              - PS1-off
  39.         sequence:
  40.           - action: script.PS1_turn_off
  41.             data: {}
  42.       - conditions:
  43.           - condition: trigger
  44.             id:
  45.              - timer-PS1-end
  46.         sequence:
  47.           - data: {}
  48.             target:
  49.               entity_id: input_boolean.PS1_venting
  50.             action: input_boolean.turn_off
  51.     default: []
  52. mode: restart
  53.  
Advertisement
Add Comment
Please, Sign In to add comment