As topic, I’m looking for a way of dimming multiple output lights with either value from an extra entity, for example input_number or dummy monocromatic light component. Only outputs ON should adjust, but other outputs later turned ON should also use this value.
Use case:
Im building a status board with many LEDs and want to adjust these for “day/night”
Having lights turn on a certain way, based on a command given before is only possible if you turn it on from Home Assistant using a dedicated script. So it kind of depends what way you use to turn the lights om if it is at all possible. What way is used?
For the rest, setting a certain brightness can be done with action light.turn_on, and you should test if it is already on before sending the new brightness. As a trigger you could react on changes of the input number.
The same action will also turn the light on with the desired brigghtness, as long as the button calls the action and uses no other way to turn the light on.
You could maybe use templates to determine the list of lights that are on, but we’d need to know more on how you select the lights you want to control in the first place.
Input buttons setting states on relays and associated LED status indicators. All done on the ESP, but also showing the states in HA. In HA I also want to set a number_input for the dimming and use this for the existing LED on, and also those turning on later. Preferably doing most of the action on the ESP.