Integrating Philips Hue Smart Button

Hello community, I would like to move from Xiaomi button switches actually on RaspBee to Philips Hue Smart Buttons via Philips gateway.

I already integrated Philips gateway and I can see the Philips lights, now I would like to know if HA is able to recognize the Hue Smart Button as Switch and if I’ll be able to do the same automations I already have with Xiaomi button, like 1 click, 2 clicks, 3 clicks and long press.

Thank you
Lucas

Tested myself (I lost 20€ :frowning: )
HA recognizes the Hue Smart button only as battery sensor. There’s no way to use it as switch, at least with HA v0.110.5.

Lucas,
I’ve had Hue smart buttons working with Home Assistant until a recent v0.110 update (I’m looking to get it all working again now). Bottom line, it can work, and it worked really well for me.

I had configured them using the HUE REST API, see here:
https://developers.meethue.com/develop/hue-api/7-configuration-api/
https://developers.meethue.com/develop/hue-api/lights-api/

Then my configuration was using rest, something like this under my sensor configuration file:

- platform: rest
  name: Smart Button Event
  resource: http://<hue_bridge_ip>/api/<hue_username>/sensors/<hue_sensor_id>
  value_template: '{{value_json.state.buttonevent}}'
  scan_interval: 2
- platform: rest
  name: Smart Button Updated
  resource: http://<hue_bridge_ip>/api/<hue_username>/sensors/<hue_sensor_id>
  value_template: '{{value_json.state.lastupdated}}'
  scan_interval: 2

Do you know on which version it worked? I have several VM where I can downgrade HA and test it, thank you.

I can confirm it is now working for me on v0.111.0, (I had a firewall rule that was causing me an unrelated issue). The only thing to note is that the smart button items don’t show-up under the hue integration, since they are configured via rest, but the functionality works.

As for the current integration, I’m not familiar with the coding behind Home Assistant yet, but the source code for the hue integration is here:

Thank you mikebirdgeneau, I integrated succesfully the Hue Api into my HASSIO 0.111 installation.

Could you please post your automations using the new sensors? Just to understand how to use them in automation to, e.g, toggle lights.

I tried the following:

- id: switch_toggle_sala
  alias: Toggle Sala
  trigger:
    platform: state
    entity_id: sensor.smart_button_event
  action:
    service: light.toggle
    entity_id: light.luce_tavolo, light.luce_tv

It works, but I don’t understand if I can use double click, triple click, or long press as I already use these events with Xiaomi switches.

Since version 0.115, Hue smart button is fully supported.

1 Like

Anybody know if and how it is possible to select different actions when pressing the button multiple times and using dimming when holding the button like native on the hue bridge?

this is normal. Buttons have no entities, except from battery level.
But, they do generate events. So, when you create an automation, you let that automation react on an event like click, double click,…

You might have made your own thing by now but if not look at this: