Zigbee2mqtt: Added Philips Hue Dimmer Switch remote control

I have a Philips Hue dimmer switch remote
this model: Philips 324131092621 control via MQTT | Zigbee2MQTT

Is it possible to add it to the Zigbee2mqtt integration or to the Philips Hue integration?

Hello :slight_smile: It’s possible to add it to the Zigbee2mqtt integration (you just need to map the actions)

If someone can make a PR! @_Will_71 this is probably for you :slight_smile:

It’s exactly the same work as this PR:

If, however, you want to keep this remote in the Philips ecosystem, it won’t be possible to have information in Gladys, because on Philips’ side they only expose the Ā« controllers Ā» in the API (lights), but not the remotes

1 Like

Thank you for thinking of me.
As soon as I can, I’ll take a look.

1 Like

I suspected there was an issue on Philips’ side.

Thanks @_Will_71 :wink:

Hi @Tlse-vins,
I started integrating the Philips remote and I’ve already added all the button states with the expose action.

It’s annoying actually — manufacturers could do common things instead of giving exposes names specific to each.

Then there’s the expose battery and linkquality which are already available.
There’s still the expose action_duration which indicates a time in seconds, do you want that too?

If I make a Docker image available to you, could you test it?

It’s supposed to be used during a long press, right?

No problem for the test image, I have what I need.

Yes, it must be to indicate how long the button was held down.

I’ll let you know when the image is available

@Tlse-vins , here is the image. I’m waiting for your feedback.

willde71/gladys-test:zigbee2mqtt-philips-324131092621

I have a doubt about the possibility of testing, I have a Raspberry Pi that I use for testing but I only have one Zigbee USB stick and I don’t remember, but if I remove it from my production instance to put it on my test instance, I think I’ll lose my devices.

Can someone confirm or deny?

I don’t think so but I can’t confirm it 100%.

I feel like there’s an inversion between the button press on the remote and the signal strength.

Edit: I compared it with a plug and it reacts the same, so it must be fine.
Edit: I couldn’t control the plug over Zigbee via a scene.

However, do you see anything displayed for the button click or the duration?

In the Zigbee interface, yes, there is the press duration on the 4 buttons.

  • on
  • on-hold-release (long press) duration with the press time
  • off
  • off-hold-release (long press) duration with the press time
  • down-press
  • down-hold-release (long press) duration with the press time
  • up-press
  • up-hold-release (long press) duration with the press time

I’m talking on the Gladys side

I forgot some states:

  • on-hold (long press)
  • off-hold (long press)
  • down-hold (long press)
  • up-hold (long press)

On the Gladys side, I do see a change in signal intensity when pressing the buttons.
I tried to create a scene when I press ON or OFF, choosing Ā« state change Ā» → Ā« remote (button click) Ā» → Ā« single click or ON or button on pressed or … Ā»
But nothing, it doesn’t work.

However, if I make a scene with
Ā« state change Ā» → Ā« remote (signal intensity) Ā» → Ā« equal to 3 Ā».
That works for the ON for example, which is a bit strange.

Do you have the possibility to remove features like right arrow click, left arrow click, cube shaken, … which don’t belong to this remote.

From what I saw in Gladys you programmed 4 states:

  • on → ON button pressed
  • on-release → ON button released (I don’t have this in the Zigbee interface)
  • on-hold → ON button held down
  • on-hold-release → ON button released after being held

I would replace:

  • Button up pressed with Button plus pressed, …
  • Button down pressed with Button minus pressed, …

Note: Ā« relĆ¢chĆ© Ā» has a circumflex accent on the A.

Here is my first feedback.
Thanks for the work done.

On my side I didn’t touch the signal intensity because it’s a feature already present and used by all Zigbee devices.

I think that pressing a button changes the signal intensity and that’s all, but under no circumstances do you get button feedback instead of the intensity.

For the available actions, I added all the actions indicated in the zigbee2mqtt doc, so all those you listed.
I’ll check tomorrow evening why other actions are showing up, I must have forgotten something. I’ll keep you posted.

For the duration, do you have a value showing in Gladys?

No, I don’t have a duration, I couldn’t get the press-for-x-seconds to work.

I’ve checked and at first glance I haven’t made any mistake.
Do you have a way (like MQTT Explorer) to check the exposes sent by your remote control?

Okay, I’ll try to test tonight.

@Tlse-vins, the modified image following our tests will be ready in about 40 min

willde71/gladys-test:zigbee2mqtt-philips-324131092621