Hi,
I would like an input select to do the following two things.
- trigger a scene when it is manually changed via lovelace
- change option when a scene is called (by automation, scipt, alexa etc).
My automations below don’t seem to work
automation:
- id: '354168431'
alias: Scene Switcher
trigger:
platform: state
entity_id: input_select.scene
action:
service: scene.turn_on
data_template:
entity_id: scene.{{ states.input_select.scene.state | lower }}
mode: single
- id: '5847613146483513584'
alias: 'Scene Switcher2'
trigger:
- platform: event
event_type: call_service
event_data:
service_data:
entity_id: scene.nighttime
domain: scene
service: turn_on
- platform: event
event_type: call_service
event_data:
service_data:
entity_id: scene.daytime
domain: scene
service: turn_on
- platform: event
event_type: call_service
event_data:
service_data:
entity_id: scene.home
domain: scene
service: turn_on
- platform: event
event_type: call_service
event_data:
service_data:
entity_id: scene.away
domain: scene
service: turn_on
action:
- service: input_select.select_option
target:
entity_id: input_select.scene
data:
option: "{{ trigger.to_state.object_id }} | capitalize }}"