I have a light that exposes 2
entities:
light.my_light
with the typical config, color, brightness, …select.my_light_gradient
a gradient scene for the light. This is to apply various gradient color transitions supported by the light. Light in this case doesn’t emit single color, so color picker from thelight.my_light
should have no effect.
I’d like to make a scene, where a gradient light effect is applied. To make this to work, I need to:
- Add
light.my_light
to the scene, because I need to turn on the light and to set the brightness - Add
select.my_light_gradient
to apply the scene
Problem is that HA will capture ALL settings from the light.my_light
config, even if I used it only to turn on the light. When scene is applied, HA will apply the brightnes, state AND color to the light, effectively it will override the gradient config.
The only way to solve this problem, is to make a scene, and then go to yaml editor, and remove everything from the light.my_light
config, except scene and brightness.
I have few questions:
- Is it possible to only capture part of the config from the entitiy. In this case I’d like to only capture
state
andbrightness
config from thelight.my_light
config that would just turn on the light and set the brightness. I don’t want to set any color during turn on. - Is it possible to control the order of entities being applied one after another for the scene?
- Is it possible to run script from the scene, so that if answer nr.2 doesn’t work, I could run script when scene is applied, add
1s
delay, and then apply my gradient? If not, I’d say it could make sense to have this feature somehow?
Thanks
Edit: This is the light, and I use Z2M for the integration + MQTT.