Advertisement
JWhy

HASS Homematic Window

Apr 13th, 2020
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.54 KB | None | 0 0
  1. - id: '1586808872130'
  2.   alias: Set Thermostate Window State
  3.   description: ''
  4.   trigger:
  5.   - entity_id: sensor.aq_wz_1
  6.     platform: state
  7.   condition: []
  8.   action:
  9.   - data:
  10.       address: PEQ1190430
  11.       channel: 3
  12.       param: WINDOW_STATE
  13.     data_template:
  14.       value: >
  15.        {{ 0 if trigger.to_state.state == 'on' else 1 }}
  16.     service: homematic.set_device_value
  17. # optional
  18.   - data_template:
  19.       message: >
  20.         Window state: {{ 'closed' if trigger.to_state.state == 'on' else 'open' }}
  21.     service: system_log.write
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement