Advertisement
kiwijunglist

Untitled

Apr 1st, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.83 KB | None | 0 0
  1. - alias: 'Update AC to idle if turned off on the remote control'
  2.   trigger:
  3.     - platform: state
  4.       entity_id: binary_sensor.door_window_sensor_158d0001fd55d5
  5.       from: 'on'
  6.       to: 'off'
  7.       for:
  8.         seconds: 1
  9.   condition:
  10.     - condition: template
  11.       value_template: "{{ not is_state('climate.panasonic_aircon', 'idle') }}"    
  12.   action:
  13.    # rest_command thingee that i can't get to work    
  14.      
  15. - alias: 'Update AC to on if turned on with the remote control'
  16.   trigger:
  17.     - platform: state
  18.       entity_id: binary_sensor.door_window_sensor_158d0001fd55d5
  19.       from: 'on'
  20.       to: 'off'
  21.       for:
  22.         seconds: 1
  23.   condition:
  24.     - condition: template
  25.       value_template: "{{ is_state('climate.panasonic_aircon', 'idle') }}"    
  26.   action:
  27.    # rest_command thingee that i can't get to work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement