I created a new blueprint that will synchronize the on-off state and brightness of two lights. Note that if one of the lights becomes unavailable, the other one will turn off. This is a good default for me, but it might not suit your use case.
Would be easy to extend to synchronizing other features as well, but these are the ones that I actually use.
Thank you so much for this. Really missed this kind of functionality from smart lighting on smartthings, and this one is concise and easy to understand.
One question. Have you considers a second entry in the choose section with a condition "{{ is_state(trigger.to_state.entity_id, 'off') }}"
Using that rather than a default ensures that nothing happens to the target entity if the trigger entity becomes unavailable.
Is there a way to add a delay, becuase i have a dimmer light switch in my bedroom and a light bulb I want it to synchronize with. If i change the dimmer to quickly on the light switch, the light bulb and the light seitch start basically arguing and it looks like the light is flickering. Does anyone have a solution for this?
I kept having an issue where this would seem to âfall out of syncâ between the lights. I realized that it would work if I tested it quickly (while the light was still on). If the second light was off, this automation would not turn it back on. I realized that there needs to be a separate âturn onâ command before sending a âturn onâ command with a brightness attribute. This now works as intended for me.
Not sure what this adds over using the built in functionality of âgroupsâ under the helper section. There you can already create groups and control multiple lights are the same time.
So I used a completely different approach and let Boolean logic do the work.
I created TWO groups for the same set of lights: âLight Group ANDâ with âAll entitiesâ selected and âLight Group ORâ with âAll entitiesâ deselected.
I then created an âOnâ automation that turns on the AND group when the OR group changes state from off to on (i.e., turn them all on if/when theyâre all off and any one turns on).
And an âOffâ automation that turns off the OR group when the AND group changes state from on to off (i.e., turn them all off if/when theyâre all on and any one turns off).
I thought this would solve a problem Iâm having with another sync blueprint but it doesnât give the option to set RGB and Brightness levels. Nevermind.