Accesing scene data in templating

I’m trying to make a script which I can call every five minutes or so which sets all of the lights in a scene to a blend of two scenes based on, for example a slider (my use is to slowly blend to a nightmode scene from whichever starting scene).

Unless there’s a better way to do this, I need to access the scene light attributes from templating. However I’m having trouble accessing these attributes.

{{ states.scene.mirror.attributes }} returns

{‘entity_id’: [‘light.window’, ‘light.undermirror’, ‘light.bed’], ‘friendly_name’: ‘Mirror’}

I need to access, for example, scene.mirror.light.bed.rgb_color, however any interpretation of this I can think of is coming up with an error. Could anyone advise how to do this if it’s possible, or if there’s an easier way? Thanks.

Did you ever figure this out? I’d like to do something similar.