Advertisement
grea09

Template or ZHA device handler ?

Mar 29th, 2020
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.83 KB | None | 0 0
  1.  - platform: template
  2.     covers:
  3.       room1_shutter:
  4.         position_template: "{{ is_state('switch.room1_shutter','off') }}"
  5.         open_cover:
  6.           service: switch.turn_on
  7.           data:
  8.             entity_id: switch.room1_shutter
  9.         close_cover:
  10.           service: switch.turn_off
  11.           data:
  12.             entity_id: switch.room1_shutter
  13.         stop_cover:
  14.           service: zha.issue_zigbee_cluster_command
  15.           data:
  16.             ieee: '20:91:8a:00:00:09:XX:XX'
  17.             endpoint_id: 1
  18.             cluster_id: 8
  19.             cluster_type: in
  20.             command: 3
  21.             command_type: server
  22.         icon_template: >-
  23.           {% if not states('switch.room1_shutter') %}
  24.             mdi:window-shutter-open
  25.           {% else %}
  26.             mdi:window-shutter
  27.           {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement