I’ve setup an input_select in configuration.yaml to allow for me to expose a dropdown list in lovelace to control 5 scenes in my main room. I’ve wired this input_select to an automation that fires when the value changes and executes the appropriate script to set all the lighting and other devices to the appropriate settings. I’m now wrestling with how to expose this to Alexa via Home Assistant Cloud. I’ve successfully exposed the input_select entity to Alexa but can’t seem to get it to respond and set the value.
Configuration.yaml entries;
down_scene:
name: Downstairs Scene Select
options:
- Dinner
- Party
- Night
- Bright
- TV
- None
initial: None
icon: mdi:lightbulb
Automation.yaml
alias: Downstairs Scene Handler
trigger:
- platform: state
entity_id:
- input_select.down_scene
action:
- service: scene.turn_on
data_template:
entity_id: "{% if trigger.entity_id == 'input_select.down_scene' %}\n {% if\
\ trigger.to_state.state == 'Dinner' %}\n scene.downstairs_dinner\n {%\
\ elif trigger.to_state.state == 'Bright' %}\n scene.downstairs_bright\n\
\ {% elif trigger.to_state.state == 'TV' %}\n scene.downstairs_tv\n {%\
\ elif trigger.to_state.state == 'Party' %}\n scene.downstairs_party\n\
\ {% elif trigger.to_state.state == 'Night' %}\n scene.downstairs_night\n\
\ {% else %}\n scene.downstairs_off\n {% endif %}\n{% endif %}\n"
initial_state: true
mode: single
How can I setup Alexa to respond to “Set Downstairs Scent to _____” (night, dinner, etc)