Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - platform: template
- covers:
- room1_shutter:
- position_template: "{{ is_state('switch.room1_shutter','off') }}"
- open_cover:
- service: switch.turn_on
- data:
- entity_id: switch.room1_shutter
- close_cover:
- service: switch.turn_off
- data:
- entity_id: switch.room1_shutter
- stop_cover:
- service: zha.issue_zigbee_cluster_command
- data:
- ieee: '20:91:8a:00:00:09:XX:XX'
- endpoint_id: 1
- cluster_id: 8
- cluster_type: in
- command: 3
- command_type: server
- icon_template: >-
- {% if not states('switch.room1_shutter') %}
- mdi:window-shutter-open
- {% else %}
- mdi:window-shutter
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement