Query Scene parameters?

Question:
Is it possible inside of a template to query for the value of entities in a scene?

Goal:
At sunset, turn on the light to 45% brightness unless it is already on.

How I am trying to do this:
In an automation, set the brightness value of light.dining_room_chandelier to the brightness value defined for that light in scene.sunset if the light is currently off. If the light is currently on, do nothing.

Obviously I could ignore the scene altogether and just configure the automation to conditionally set the brightness value of the light based on it’s current state.