ZHA - Philips Hue Dimmer Switch (RWL020, RWL021)

Thank you. V2 works fine and has even more possibiltles.

@vanstinator have you seen this?

Bump, still on 2022.3.8 until I get a path forward. :slight_smile:

Why not just using V2? Works perfectly.

I fixed the issue by changing the args parameter to seperate lookups in the params dict.

See my version here:

No functional changes have been made, so this can be used as a drop in replacement.

1 Like

Seems there was a change in 2022.6.0 and brightness value is no longer returned as 0 when the light is off (I’m assuming) so V2 throws an error when turning on.

To get it working again I changed the line

cur_brightness : '{{ state_attr(light, ''brightness'') | int }}'

to

cur_brightness : '{{ state_attr(light, ''brightness'') | default(0) }}'
6 Likes

Thanks for your sharing. I had the same problem since the update your solution solved the problem.

Thanks for sharing the fix!

Hi together,

I tried all version of this script, and i have always the same issue. I am able to dim and turn off the lamp but turning on does not work. Does anyone know what the issue or how to debug?

solution got already posted by bamzero

I have the same problem

Fix my issue thanks!

The blueprint, as it installs using automated install, is broken, It will definitely turn on the light, but dim and off no longer working.
I use the blueprint so I don’t have to mess with code too much. If there is a fix, it should really be put in the blueprint so others downloading do not have to mess with the code to fix a bug…

There are alternative blueprints for the RWL020 / RWL021 (Version 1) Dimmer Switches, and there is a nice V2 dimmer switch blueprint if you have the new one with the Hue button on the bottom.
This one works well for the Version 1 (RWL020/RWL021) dimmers, a lot of options in it though and maybe not quite as simple, but the main thing is it works.

1 Like

This blueprint does not seem to be working anymore with my RWL020. The on button will work to turn the light on, but the dim and off buttons do not do anything.

Can we get a fix please? This is my favorite blueprint for this device and would love to keep using it.

1 Like

Can confirm. Currently, both the v1 and v2 versions seem to be broken. v2 doesn’t even seem to pick up any actions. v1 does register my off/on presses, but doesn’t do anything to the lights.

hey guys, i fixed it.
i dont understand why, but the declaration of the variable ‘args’ doesnt work anymore.

quick’n’dirty fix:
replace all ‘{{ args == […] }}’
with ‘{{ trigger.event.data.args == […] }}’

that sould fix it.

6 Likes

I’m in the same boat as @jeremytodd1
For as long as I can remember, only the ON button has been working.

Thank you so much for this. First blueprint I have tried that works like expected with RWL021

Hey, that was the solution in my case too!
But I also didn’t understand why the variable is no longer pulled correctly.

Thank you!

doest seem to work for me,

I can only get the on button to work.

randomly thought i would try and change the on button to turn off the light and that doesn’t work either. Although i am very new here it could just be my coding lol

1 Like