123
(Taras)
September 1, 2021, 1:16am
2
If you simply want to synchronize their states (when you turn on/off one light, the other is also turned on/off) there are at least three Blueprints available that can do that:
Deprecated
A better and up to date solution can be found here :
https://community.home-assistant.io/t/link-on-off-state-of-multiple-devices/
It should fix most issues found in this blueprint.
I updated the blueprint below but can’t commit to keep it up to date in the future.
Initial post
Simple blueprint to synchronize the state of 2 entities.
I use it to synchonize the state of my lights and switches.
Get started
Click the badge to import this Blueprint: (needs Home Assistant Core 2021…
Incredibly simple way to bond the states of 2 entities together,
NB. not to be confused with “groups”, this would usually be used to bond the states of physical devices.
Dual:
blueprint:
name: State Bonding - Dual
description: Bind 2 entities together to act in unison (selected entites must all support the same state values)
domain: automation
source_url: https://community.home-assistant.io/t/state-bonding-dual/264183
input:
switch_1:
name: Entity 1
selector:
…
This is my first attempt with blueprints. I use it with my bathroom lights. I have the main light and the mirror light and use this to turn on the primary(main) light when the secondary(mirror) is turned on and turn off the secondary(mirror) light when the primary(main) is turned off.
blueprint:
name: Synchronize Primary and Secondary Lights
description: Turn on the primary light when the secondary is turned on and turn off the secondary light when the primary is turned off.
domain: autom…
However, if you want to also synchronize their brightness, that’s more challenging (and, to my knowledge, there’s no Blueprint for it).
The alternative is to create a Light Group . It will be a new light entity that controls the state and brightness (and color) of one or more other lights.
1 Like