Hi, guys! I’m wondering if there is any way to access a scene’s configuration from a template?
I need the scene’s configuration for the individual light’s state (color, on/off etc).
I was thinking something like this:
{{ state_attr(state_attr("scene.some_scene", "entity_id")[0], "rgb_color") }}
The code above gets the entities the scene is responsible for, takes the first light and get’s it’s color value. This works, but gets the current color value, not the scene’s value.
Are there any way to get the values, or do I have to become a full mad lad and create a custom component and manually parse the scenes.yaml
configuration to make it work?
Any help or pointers are greatly appreciated!
Why?
I'm looking to manually transition between two scenes over a long period of time. Typically between 15 - 120 minutes.My plan is to take each of the light’s color value from both scenes and extrapolate what the value should be at the current point in time. (I know the start time and duration).
I cannot use a long transition time between the lights, because ie. the lights are motion controlled and are turned on/off multiple times within the transition period.