Data_Template - Entity_ID AND Data e.g. color_name

Hi,

I’m trying to do this for an Alexa skill in an intent script:

action:
  service: light.turn_on
  data_template:
    entity_id: light.{{ Light | replace(" ", "_") }}
    data:
      color_name: {{ Colour | replace(" ", "_") }}

I can get entity_id to work on it’s own, but can’t pass the data for the enitity ID (.e.g colour)

Can anyone help with this?

Many thanks :slight_smile: