Zigbee2mqtt: Philips Hue Dimmer Switch V2 remote

Hello everyone,

I have an extra Hue Dimmer Switch V2 (the one with the Hue button at the bottom) that I wanted to connect to Zigbee2Mqtt to launch scenes in Gladys. I came across this topic: Zigbee2mqtt: Ajout télécommande Philips Hue Dimmer Switch

Looking at the commits of the PR on GitHub, I see that the actions in the file server/services/zigbee2mqtt/exposes/enumType.js are now separated by hyphens (on-press / on-release for example) instead of underscores, which doesn’t match the V2 of the dimmer switch according to the zigbee2mqtt documentation.

Would it be possible to modify it to put the underscores back instead of hyphens?

If I understand correctly, the V1 must have had a firmware update to handle this, and if that’s not the case, zigbee2mqtt has a legacy option for this device to continue converting underscores to hyphens. V1 users should therefore not be affected while allowing the use of the V2.

What do you think?

I did try to convert the messages on the fly via Node-Red but it quickly becomes a mess.

Available for testing if needed.

Thanks

Hi @s7evinLN :slight_smile:

Indeed, I see the same thing in the Zigbee2mqtt documentation: Philips 929002398602 control via MQTT | Zigbee2MQTT

I added it here: Zigbee2mqtt: Add Philips Hue Dimmer Switch v2 by Pierre-Gilles · Pull Request #2523 · GladysAssistant/Gladys · GitHub

I just started a Docker build that will be available on gladysassistant/gladys:add-zigbee2mqtt-philips-hue-dimmer-switch-v2 in about twenty minutes.

Let me know if it’s good for you :slight_smile:

Hi @pierre-gilles

I just tested your build, it’s perfect, all 4 buttons work! (Pressed button, pressed plus button, pressed minus button, and pressed off button).

Thanks for the quick fix, it’s great

Great, I’ll merge and integrate this into the next release!

It’s merged, I’ll let you know as soon as it’s live in production :slight_smile:

It’s live: