ZHA - Philips Hue Tap Switch Mini - Custom Controls (RDM002)

Hi,

I am trying to use the custom controls blueprint, however no philips devices are found.

An idea ?

Thanks

Hi, @stephane1. Can you post your last post on the other blueprint thread, please? Thanks.

Sorry I did a mistake, my problem is with the custom controls blueprint !

Got it.

Iā€™m surprised to hear this. You definitely have a Philips RDM002 as pictured in the first post and its connected via Zigbee Home Automation (and not Zigbee 2 MQTT or something else)?

Can you share a picture of what you see when you look at the device? I see this for mine.

image

My devices are connected via Zigbee 2 MQTT !

This blueprint, and the other one I referenced, is specific to Zigbee Home Automation (ZHA) and doesnā€™t support Zigbee 2 MQTT.

Unless you decide to switch to ZHA, Iā€™m afraid you wonā€™t be able to use it. Iā€™m glad we at least figured out what the issue was!

I did make a blueprint for controlling this dial using Z2M back in 2023, but Iā€™m not sure if that blueprint still works and Iā€™m not currently supporting it because Iā€™ve moved to ZHA. If youā€™re interested in looking at it, itā€™s here, but if you find issues I donā€™t think Iā€™ll be able to help.

Ok, thanks you for all your explanations.

1 Like

Thank your for your blueprint, it helps a lot.

But unfortunate it does not work when activating scenes.
I noticed the blueprint is called three times when I press a button.

  • the first which triggers nothing
  • the second which triggers ā€œbutton_1_pressā€
  • the third which triggers ā€œbutton_1_short_releaseā€

The the third one is my problem. Because this one cancels my action which is configured for button 1 short presses.
Any idea what is going on here?

Hi. Thanks for posting this.

I have a theory but before I explain that - based on your explanation, it seems that moving your automation to the button_1_short_release event would fix the problem. If it does, thatā€™s probably the simplest thing to do.

I suspect that the issue youā€™re encountering is caused by the ā€œautomation modeā€ specified within the blueprint. The automation mode is currently set to ā€œrestartā€ which means that if an event is being processed and another event arrives, the in-progress event is stopped.

You can read about automation modes here: Automation modes - Home Assistant

Iā€™m guessing that whatever your automation is doing is in progress at the time of the button release. So the in-progress ā€œpressā€ event is pre-empted so the release event can be handled.

Iā€™m not sure the other modes are better for this automation. If you want to experiment with a different mode, you can edit your local blueprint and change the line that is currently

mode: restart

to use single, queued, or parallel. Honestly, though, I think the most straightforward approach is to just move to using release events.

Please let me know what you try and how it goes! Thanks!