I am using scenes to fetch the right settings for lights throughout the day, using three scenes: daytime, evening and night. Below is the action I call within my automation.
Your spacing before entity_id is off. Need to move one space to the left (that’s why it’s not working with just the entity ID). But…you need to use data_template: above entity_id when templating the entity ID for Home Assistant to parse it correctly.