Need Help Saving and Restoring Philips Hue State for Doorbell Notification

Hi everyone,

Would someone be willing to help me with a Homey script (Flow or maybe using Better Logic)?

I’ve been trying for quite a while, even asked ChatGPT and Grok for help, but unfortunately we still can’t figure it out together :sweat_smile:

What I’d like to achieve actually seems pretty simple (I think):

I have a Eufy doorbell that sends a notification to Homey when someone rings it.

When that happens, I want the following to happen:

Homey remembers the current on/off state and dim level of all my Philips Hue lights.

All Hue lights briefly turn on to 90 % brightness (as a visual “doorbell signal”).

After a few seconds, all lights go back exactly to how they were before (both on/off and the original dim level).

The part I find especially tricky is nicely saving the original states and then restoring them properly afterwards.

I would be super grateful if someone has the time and feels like helping me out with this!

Thanks so much in advance for any tips or ideas! :folded_hands:

Best regards,
Albert

Most of my Hue-lights come in pairs. So in my case I would change only one of them to 90% and after a few seconds copy the state from the other one.

I did the same thing for a bathroom light. This one is only for on/off state, but you can also add dim level

With dim level it would look something like this:

First, check if the light is on. If it is, set a Logic variable to the dim level of the light. Then you can dim it to 90%, wait 3 seconds and dim it back to the original dim level. If the light is off (so the “Is on“ condition is false), then you can turn it on, dim to 90% and turn it off again after 3 seconds.

You could use the app:

1 Like

Thanks for your feedback. I’ll definitely try the app.