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

Zigbee2MQTT - Philips Hue Tap Switch Support #236

Closed FrankGiesecke closed 3 weeks ago

FrankGiesecke commented 1 month ago

Please, add Zigbee2MQTT - Philips Hue Tap Switch Support

I've tried to add the Blueprint, but even with restarting my HA instance, it doesn't appear in the list of buttons. Where is my mistake?

/root/config/custom_components/switch_manager/blueprints/zigbee2mqtt-philips-hue-tap.yaml

name: Philips Hue Tap Switch
service: Zigbee2MQTT
event_type: mqtt
mqtt_topic_format: zigbee2mqtt/+/action
buttons:
  - actions:
      - title: press
        conditions:
          - key: payload
            value: press_1
  - actions:
      - title: press
        conditions:
          - key: payload
            value: press_2
  - actions:
      - title: press
        conditions:
          - key: payload
            value: press_3
  - actions:
      - title: press
        conditions:
          - key: payload
            value: press_4

As image, I copied the original image from the Philips Hue blueprint...

cp philips-hue-tap.png zigbee2mqtt-philips-hue-tap.png
Sian-Lee-SA commented 1 month ago

https://github.com/Sian-Lee-SA/Home-Assistant-Switch-Manager?tab=readme-ov-file#blueprints you need to place blueprints in config/blueprints/switch_manager

RezzZ commented 1 month ago

i added a pull request for the tap I had myself. lets see if it can be added for others to use