Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - id: '1586808872130'
- alias: Set Thermostate Window State
- description: ''
- trigger:
- - entity_id: sensor.aq_wz_1
- platform: state
- condition: []
- action:
- - data:
- address: PEQ1190430
- channel: 3
- param: WINDOW_STATE
- data_template:
- value: >
- {{ 0 if trigger.to_state.state == 'on' else 1 }}
- service: homematic.set_device_value
- # optional
- - data_template:
- message: >
- Window state: {{ 'closed' if trigger.to_state.state == 'on' else 'open' }}
- service: system_log.write
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement