Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: 'Update AC to idle if turned off on the remote control'
- trigger:
- - platform: state
- entity_id: binary_sensor.door_window_sensor_158d0001fd55d5
- from: 'on'
- to: 'off'
- for:
- seconds: 1
- condition:
- - condition: template
- value_template: "{{ not is_state('climate.panasonic_aircon', 'idle') }}"
- action:
- # rest_command thingee that i can't get to work
- - alias: 'Update AC to on if turned on with the remote control'
- trigger:
- - platform: state
- entity_id: binary_sensor.door_window_sensor_158d0001fd55d5
- from: 'on'
- to: 'off'
- for:
- seconds: 1
- condition:
- - condition: template
- value_template: "{{ is_state('climate.panasonic_aircon', 'idle') }}"
- action:
- # rest_command thingee that i can't get to work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement