Sian-Lee-SA / Home-Assistant-Switch-Manager

Switch manager is a centralised component to handle button pushes for your wireless switches. This includes anything passed through the event bus. The component relies on switch blueprints which is easily made to allow GUI configuration of your switches and their button pushes. This helps remove clutter from the automations.
Other
206 stars 79 forks source link

ZHA and IKEA shortcut button E1812 #198

Closed hrw closed 7 months ago

hrw commented 7 months ago

I moved from Zigbee2MQTT to ZHA. And found that Ikea shortcut button E1812 is not supported.

This blueprint works for me:


name: Ikea Shortcut E1812
service: ZHA
event_type: zha_event
identifier_key: device_id
buttons:
  - actions:
      - title: press
        conditions:
          - key: command
            value: "on"
          - key: cluster_id
            value: 6
          - key: endpoint_id
            value: 1
      - title: press 2x
        conditions:
          - key: command
            value: "off"
          - key: cluster_id
            value: 6
          - key: endpoint_id
            value: 1
      - title: hold
        conditions:
          - key: command
            value: "move_with_on_off"
          - key: cluster_id
            value: 8
          - key: endpoint_id
            value: 1
      - title: hold (released)
        conditions:
          - key: command
            value: "stop_with_on_off"
          - key: cluster_id
            value: 8
          - key: endpoint_id
            value: 1
Sian-Lee-SA commented 7 months ago

Create a PR if you wish to add to repo

hrw commented 7 months ago

Done with #200