I’m trying to link 2 bulbs to eachothers attributes, starting with brightness (1 is a simulated bulb, the other a wifi bulb).
The idea is when one of the 2 changes brightness, the other get its brightness updated.
However it doesn’t seem to work… Both bulbs won’t update. What am I missing here?
Try simple state triggers, no to or from and then a condition check to see if the brightness has changed. Right now you’re not doing any comparison in the trigger, so it’ll never be true or false.
Doesn’t that also perform the action when the lights turn off?
And it’s possible the state doesn’t change, only the attributes. The lights are already on, but only brightness is changing.
Triggers when the state of a given entity changes. If only entity_id is given trigger will activate for all state changes, even if only state attributes change
The condition I wrote will cover any change in brightness, which probably will include turning the light on or off. I’ve never tested it though, because I’ve never needed that kind of automation.