I would like to Sync My dining Room pot light brightness to my hallway lights when I change the brightness.
Im trying to do this through the Gui, and have messed with the Yaml right now. I have it working so it checks if the hallway light is on, and if it is, then set the brightness. The part i am missing is I want to copy the brightness.
This is what I have.
Trigger
platform: state
entity_id:
- light.dining_room_lights
attribute: brightness
When I change the brightness on the dining room lights via the peco, the hallway lights will react (1 Time) but will not copy the brightness. They go to 50 % range regardless. When I turn the hallway lights off and on again, then they once again will only react once when I change the dining room brightness.
Sorry I confused you.
I meant I want to see the entities as in the light.dining… in the developer tools → states.
The developer tools → states show all the attributes of an entity and the real values.
So keep both lights on and take a screenshot of what the states and attributes are on that view
and how would one make this backwards compatible so the Dining room also listens to the hallway?
Ultimately, what I’m looking to do, and Ill make a separate post for it, is have all my pot lights upstairs brightness synced, and all listening to each other, but if I Quickly press the light on 3 times, it adds it to the sync group, and when I turn it off 3 times or something, if removes it… So I can add and remove from the lutron wall switch…
It’s probably doable but I don’t know how these switches work.
I believe you would need one boolean per light to be “in or out of group”.
Then (I would do this way), use a history stats counter to count how many times the light has been switched in a short period.
Use this as a trigger to toggle the boolean.
Regarding syncing all lights, I believe we would have to loop through all lights you have, if boolean is on for this specific light, then set brightness.
This is not a simple automation, we would need to see a few of the entities (just list them) then perhaps we could help you out with this.
It’s always better to get real entity names both for you and us.
But again, creating a light group makes more sense in this case. You will have a new light entity that represents both lights, than any change to that new entity will apply to all the lights. No need for creating an automation for this.
In order to create a light group, go to Settings > Devices and Services, select the tab Helpers and then click on Create helper (bottom right), then select Group > Light group
Now you can add this new light to your dashboards or automation, and everything you ask that light to do (turn on/off, change brightness, color, etc) will happen on both lights at the same time. And you can still control your lights individually using the original entities.