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.