Philips HUE Smart Button - 5 press actions + hold-to-dim

It may be a coincidence, but since I’ve updated Home assistant the “button double press” doesn’t work, all the other types do but not the double press… could someone else check and see if its just me? Thanks

I’m still on 2023.3 here I’m afraid, 2023.4 looked too messy for me with all the corrupt databases.

Which integration are you using?

The latest one I thought, is there a way to see which one ive got?

Yes agreed, same issue

Can you show me the mqtt events for the problem action? Something must have changed in 2023.4

Same issue here. Double-press only performs the single press action since a recent update, not sure if it was 2023.4, or .5 or +.

Home Assistant version: 2023.5.2

I don’t really see anything in the MQTT topics/logs that indicate an error or issue, it just looks like single presses.


Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04', payload '{"action":"press","battery":100,"linkquality":164,"update":{"installed_version":33566472,"latest_version":33566472,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04/action', payload 'press'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04', payload '{"action":"release","battery":100,"linkquality":164,"update":{"installed_version":33566472,"latest_version":33566472,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04/action', payload 'release'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04', payload '{"action":"press","battery":100,"linkquality":168,"update":{"installed_version":33566472,"latest_version":33566472,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04/action', payload 'press'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04', payload '{"action":"on","battery":100,"linkquality":168,"update":{"installed_version":33566472,"latest_version":33566472,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04/action', payload 'on'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04', payload '{"action":"release","battery":100,"linkquality":168,"update":{"installed_version":33566472,"latest_version":33566472,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04/action', payload 'release'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04', payload '{"action":"off","battery":100,"linkquality":136,"update":{"installed_version":33566472,"latest_version":33566472,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:09</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04/action', payload 'off'`

Info <small>2023-05-12 13:49:11</small>`MQTT publish: topic 'zigbee2mqtt/Hue Slim Down Light 01', payload '{"brightness":190,"color":{"h":36,"hue":36,"s":70,"saturation":70,"x":0.4234,"y":0.399},"color_mode":"color_temp","color_temp":312,"linkquality":164,"power_on_behavior":"previous","state":"ON","update":{"installed_version":16785162,"latest_version":16785162,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:11</small>`MQTT publish: topic 'zigbee2mqtt/Hue Slim Down Light 01', payload '{"brightness":190,"color":{"h":43,"hue":43,"s":36,"saturation":36,"x":0.3608,"y":0.3635},"color_mode":"color_temp","color_temp":222,"linkquality":172,"power_on_behavior":"previous","state":"ON","update":{"installed_version":16785162,"latest_version":16785162,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:18</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04', payload '{"action":"press","battery":100,"linkquality":164,"update":{"installed_version":33566472,"latest_version":33566472,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:18</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04/action', payload 'press'`

Info <small>2023-05-12 13:49:18</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04', payload '{"action":"release","battery":100,"linkquality":168,"update":{"installed_version":33566472,"latest_version":33566472,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:18</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04/action', payload 'release'`

Info <small>2023-05-12 13:49:18</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04', payload '{"action":"on","battery":100,"linkquality":168,"update":{"installed_version":33566472,"latest_version":33566472,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:18</small>`MQTT publish: topic 'zigbee2mqtt/Hue Smart Button 04/action', payload 'on'`

Info <small>2023-05-12 13:49:19</small>`MQTT publish: topic 'zigbee2mqtt/Hue Slim Down Light 01', payload '{"brightness":190,"color":{"h":43,"hue":43,"s":36,"saturation":36,"x":0.3608,"y":0.3635},"color_mode":"color_temp","color_temp":222,"linkquality":164,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":16785162,"latest_version":16785162,"state":"idle"},"update_available":null}'`

Info <small>2023-05-12 13:49:54</small>`MQTT publish: topic 'zigbee2mqtt/3R Motion Sensor 01', payload '{"battery":100,"battery_low":false,"linkquality":180,"occupancy":false,"tamper":false,"update":{"installed_version":33,"latest_version":33,"state":"idle"},"update_available":null,"voltage":3100}'`

Info <small>2023-05-12 13:50:02</small>`MQTT publish: topic 'zigbee2mqtt/3R Temp Sensor 02', payload '{"battery":100,"humidity":49,"linkquality":192,"temperature":21.2,"update":{"installed_version":21,"latest_version":21,"state":"idle"},"update_available":null,"voltage":3100}'`

Info <small>2023-05-12 13:50:02</small>`MQTT publish: topic 'zigbee2mqtt/3R Temp Sensor 02', payload '{"battery":100,"humidity":48,"linkquality":192,"temperature":21.2,"update":{"installed_version":21,"latest_version":21,"state":"idle"},"update_available":null,"voltage":3100}'`

Info <small>2023-05-12 13:50:49</small>`MQTT publish: topic 'zigbee2mqtt/Hue Motion Sensor 01', payload '{"battery":100,"illuminance":13216,"illuminance_lux":21,"led_indication":true,"linkquality":192,"motion_sensitivity":"very_high","occupancy":false,"occupancy_timeout":13,"temperature":23.09,"update":{"installed_version":-1,"latest_version":-1,"state":"idle"},"update_available":null}'`

How many presses was that in this output?

For me it also stopped working right after I did the update of HA to 05.2 …
What I see that what ever I press the event that is stored in the helper is always the same (sorry German language)

That’s what is stored in the helper since the update when doing a double press

wechselte zu {“trigger_action”:“release”,“last_triggered”:“2023-05-14 12:46:46.545673+02:00”,“last_dim_direction”:“up”} ausgelöst durch Automatisierung mqtt topic zigbee2mqtt/SmartMultiBuero/action

and that’s what I got yesterday according to the history

wechselte zu {“trigger_action”: “double_press”, “last_triggered”: “2023-05-13 11:06:25.619335+02:00”} ausgelöst durch Automatisierung mqtt topic zigbee2mqtt/SmartMultiBuero/action

Sorry guys to debug this I’ll need the output of payloads on the /action mqtt topic with comments of where a physical button press happened

Hope this is what you want to see -for me it looks like the button press is recognized correctly on the mqtt side

This is a double press

fo 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"press","battery":100,"linkquality":87,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"","battery":100,"linkquality":87,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero/action', payload 'press'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"release","battery":100,"linkquality":87,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"","battery":100,"linkquality":87,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero/action', payload 'release'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"press","battery":100,"linkquality":87,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"","battery":100,"linkquality":87,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero/action', payload 'press'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"release","battery":100,"linkquality":91,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"","battery":100,"linkquality":91,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero/action', payload 'release'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"off","battery":100,"linkquality":94,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero', payload '{"action":"","battery":100,"linkquality":94,"update":{"installed_version":33559808,"latest_version":33566472,"state":"available"},"update_available":null}'

info 2023-05-14 14:49:42MQTT publish: topic 'zigbee2mqtt/SmartMultiBuero/action', payload 'off'

Can you try changing the Internal Debounce Delay setting to 0 and see if that fixes it?

1 Like

Is it possible that there is an issue in the code?

I would expect lines 336/337, 351/352, 366/367, 381/382 and 394/395 to be similar, but 336/337 is missing

,“last_dim_direction”:last_dim_direction

Or didn’t I load the newest version today?

You are correct :slight_smile: sorry I missed that, updated the github now.

If you still have the same problem after updating try changing the debounce delay to 0 as above and let me know if that solves it

Hi,
I changed it locally, but without success.

Same for Debounce Delay 0 - didn’r help.

Can you zip and PM me all of the traces during a double press event? I don’t see anything else obvious so will need to take a deeper look

Would like to, but I’m missing the message button … thought I see it when I click on your avatar, but that is not the case.
Am I to new in the forum and not allowed to sent a message?

Strange, when I click you it says profile hidden. Can you add me as a friend or something?

What I can see is that it is failing all multi press conditions … key should be the first one here

{{ trigger_action | string in states(helper_last_controller_event) and
trigger_delta | int <= helper_multi_press_delay | int }}

tried one more thing and removed

’ and trigger_delta | int <= helper_multi_press_delay | int’

from the condition and it worked for double press, so it looks like the issue is releated to that part.

That’s the trigger delta I see in the trace

        "trigger_delta": 1684077172104.533

not sur if this helps, but if this is the right part of the trace then the helper_valid = false can be the reason

  "action/0/default/2": [
    {
      "path": "action/0/default/2",
      "timestamp": "2023-05-14T15:46:42.693518+00:00",
      "changed_variables": {
        "trigger_action": "release",
        "helper_valid": false,
        "trigger_delta": 1684082802693.312,
        "default_dim_direction": "up",
        "last_dim_direction": "up",
        "last_trigger_action": null
      },
      "result": {
        "choice": 1
      }
    }

I think the helper_valid bit is the problem as you say… can you paste me the state of the helper ?

Make sure to put it on code blocks so the forum doesn’t change the quotation marks.

Do you ever see helper_valid as true in the traces or is it always false?