Hi,
this is probably an easy one but i’ve been breaking my head over it.
I have a button with the following code that works fine:
- type: button
tap_action:
action: call-service
service: hue.hue_activate_scene
service_data:
group_name: Living room
scene_name: Movies
icon: 'mdi:movie'
name: Movies
Now i made an input_select with some names for the scenes called input_select.hue_scenes. I made sure the values are exactly the same as the names of the scenes.
Then i tried this code for my new button:
type: button
tap_action:
action: call-service
service: hue.hue_activate_scene
service_data:
group_name: Living room
scene_name: {{states('input_select.hue_scenes')}}
icon: 'mdi:movie'
But this gives an error on the scene_name field.
if i use {{states(‘input_select.hue_scenes’)}} in the Template Editor it just gives me the selected state of the input_select.
I’m confused why this is not working, but i bet it’s something simple.