danielccm
(Daniel)
August 31, 2021, 11:14pm
1
I have a wifi based dimmer switch that works with Tuya. It’s a rotary switch… like, a wheel to adjust the intensity, and a button for on/off.
It is recognised as a light in HA.
I want to control another wifi light (for now, later I will want to control a full group of lights) using said dimmer.
How should I tackle this? I’m a complete newbie in “complex” programming…
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
danielccm
(Daniel)
September 2, 2021, 12:15am
3
Nice, I’ll take a look, but you did point something out… I need to control the brightness too…
nima
April 24, 2022, 3:15am
4
Edit: found a solution that works for me:
1 Like
The light group feature in the latest versions of HA works perfectly! (at least in brightness/on-off, can’t say if colour will work)
nima
April 25, 2022, 5:45pm
6
The link I gave works for rgb color and and effects (for light strips for instance), too. I think it’s more robust than light group feature (which didn’t work for me). Glad you found a solution that works for you!