When a light turns on, it turns on to whatever it was last time it was on. For my use case, I want to have it turn on to a set brightness, which is changed by different events. These events could be anything - time, who is home, tv state, kids in bed, etc).
The way I am currently doing this seems wrong. I’ve defined a new helper and use this in any automation that turns on the lights. That’s great but, not only does it feel mad, I can’t use the lovelace light controls.
Anytime a light or group of lights is turned on or off, the template light can activate a script which can do pretty much whatever you want.
Also, there are various fields to control the attributes of the light(s), from colours to brightness etc. These can be set based on templates (for instance, when the TV is on, set the brightness of a light to 50%)
However… having many of these conditions could make the template light messy.
For example, take this part of the configuration: