I have 2 smart HUE smart buttons for each of the kids rooms, integrated via ZHA . I made a small automation but I was limited to only have on/off. Also in real life, in order for the button to work I need to press twice. I was wondering if someone made custom automation for this button and might put it in a blue print or can guide me to make the automation myself.
you can watch the events and use them as triggers to your automations.
There is a step (with args) and stop event when held and released.
If motivated I may try to write a blueprint. however it you are using the button to control zigbee lights I’d highly recommend binding the button directly with the light or group of lights. I do this and it can toggle the light and control dimming. it works as well if HA goes down.