A great simple solution, very useful! Can I suggest expanding this to also set the brightness level to match? In my case I have a lamp with two Hue bulbs that I always keep in synchronization, if I could also sync the brightness and RGB that is perfect. However, as it is, still useful and I’m using it
just capture the triggering entity, use that to determine current brightness and apply that to the oposing entity.
I think when I did it the brightness had to be converted to brightness_pct to get it to work (I can’t remember exactly it was just a quick and dirty solution), But you could also do it with light groups if your platform supports that
I used this blueprint to synchronize a smart switch and a smart lamp, it works perfectly. I can’t help but be impressed and at the same time “well, I managed to make it work like any dumb switch works”.
Well, not necessarily. If you manually adjust a light bulb from outside HA (with a remote or the manufacturer’s app) than a blueprint can still synchronize all bulbs.
I have 2 use cases for this myself:
A set of four lights built into the ceiling, near the rear wall in the living
A set of three bulbs in an IKEA MAGNARP floor lamp
Hi @adchevrier , just wanted to chime in with an interesting side effect, since I love this blueprint, and I use it heavily, maybe I can contribute.
I’ve noticed that I get some error masseges in my logs, HA not findig service which the blueprint calls. I realised it’s due to the fact that sometimes my shelly switches become unavailable, and when this state change happens to any of the lights included in the automation based on this blueprint, it tries to set the other lights to unavailable as well
Minor issue, doesn’t influence normal behaviour, just wanted to let you know.
Error while executing automation automation.XXXX: Unable to find service homeassistant.turn_unavailable