ZHA - Philips Hue Tap Dial Switch (RDM002) Custom, Light and Media mode

Hi danieldeni,
Many thanks for your blueprint (and to those you based it on) !

I am using this to control 4 lights - 2 Philips hue and 2 Tapo multi-coloured lights.

With your code the dimming on the tapo lights was changing the brightness by approximately 3% but I wanted to make this 1%. I noticed that each click of the dial increased the raw data by 8 so I adjusted the variables section in the code as follows:

1469  step_size_raw: "{{ trigger.event.data.params.step_size | default('0') }}"
1470  step_size: "{{( step_size_raw / 8 )}}"

This code now means every small step rotation is a step of 1.
(I am new to HA blueprinting and I couldn’t work out how to divide by 8 in one line!)

To dim the light in all the rotate left or right aliases I changed all references of:

brightness_step to brightness_step_pct

This means 1 click of the dial will change the brightness by 1% if the dial is moved slowly, and if the dial is moved quickly the brightness step will change accordingly. The dial automatically reports a larger step size which is great!

My Tapo lights change brightness from 1% to 100% in steps of 1% so I find this works best for these lights, particularly if you want to set it at the minimum setting as a night light. It also works well for the Philips lights, but they are less sensitive.

Feel free to integrate this in your blueprint if you or anyone else finds it useful!

Thanks again for your hard work!

Best Regards!

I am only using Philips Hue lights and those have 255 steps of brightness as it doesn’t target the % of the light but the raw brightness values through the step command. For Zigbee lights this is common, but I guess Wifi based lights like Tapo only have 100 steps using this?

I’ll need to check when I have time to make the step size configurable for this use case, as it will be too slow for Zigbee lights with your changes.

Hi @danieldeni - I’ve been using your Blueprint for a while now but I think I have run into an issue with using a Schedule.

My Hue downlights are switched my Clipsal Wiser switches so I have an automation that keeps the light state and switch state in sync but also using different light settings (brightness, colour temp) depending on the time of day.

I replicated those time of day settings in a Schedule, created via the UI:

image


I have added that Schedule to the automation created from the Blueprint, however the Blueprint seems to be ignoring the Schedule:

When I use Button 2 after 19:30, the lights come on using the settings in the Blueprint rather than what is specified in the Schedule.

Check the example I have in the start post. The additional data should be with these names per field:

brightness_pct: 30
color_temp_kelvin: 3333

Where you can put your own numbers of course, per preference.

Do keep in mind the Blueprint doesn’t trigger the schedules automatically on changes, only if you press the button. I have a separate automation in place that triggers on schedule change, might integrate that later into the blueprint.

I’ll try that out, thank you.

Note though that the documentation for Schedules - https://www.home-assistant.io/integrations/schedule/#adding-additional-data - show the formatting as I have it:

That’s an example for generic use yes. And might be updated in the future outside of my control.

color_temp was linked to mired in the past and was changed somewhere in 2024 to be based on kelvin. To avoid confusion I used color_temp_kelvin .

My start post has instructions for my blueprint specifically. You can use whichever names are set inside the blueprint, others are ignored as they are not put in the logic of the automations and variables.

1 Like

Now working as expected. Thank you.

1 Like