HUE Smart Button via ZHA


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.

Hello, thank you for your reply. I’ve been listening to the button. Here is the result

    "event_type": "zha_event",
    "data": {
        "device_ieee": "00:17:88:01:06:07:31:10",
        "unique_id": "00:17:88:01:06:07:31:10:1:0x0006",
        "device_id": "e59f952899b69f8bfc5b2d62e23d61ea",
        "endpoint_id": 1,
        "cluster_id": 6,
        "command": "on",
        "args": []
    "origin": "LOCAL",
    "time_fired": "2020-12-21T20:10:02.450101+00:00",
    "context": {
        "id": "4e1e7a0d60ada32413c0b3cc4445b9f8",
        "parent_id": null,
        "user_id": null

And based on this, I made the following automation

alias: Ron Light Switch ON/OFF
description: ''
  - platform: event
    event_type: zha_event
        device_ieee: '00:17:88:01:06:07:31:10'
        command: 'on'
        args: []
condition: []
  - type: toggle
    device_id: c374e4c29a111616ca9ab05487039871
    entity_id: light.spot_r1_63925efe_level_light_color_on_off
    domain: light
mode: single

which comes back without any result

In the end I went to use NodeRed to configure my buttons

In case it helps, managed to get it working as an automation on that zha_event, just using only device_id and command only.

Configured so will respond different on normal tap vs long hold, using:

command: off_with_effect
command: stop