HI,
i’m stuck and running in circles here.
I’ve got several switches, in various states combined into a few scenes. Automations to call those scenes. I’ve got all these automations lined up in a group, and they work quite nicely. very simple.
Next I’ve declared an input-select, to set those scenes. And then the confusion starts. How do i call these automations with the input_select. Do i need an intermediate automation for that, or is my original automation superfluous.
check along please:
some scenes:
##########################################################################################
# Scenes
##########################################################################################
- name: Opstaan
entities:
switch.sw_espresso_keuken_cl:
state: on
- name: Aan de slag
entities:
switch.sw_office_cl:
state: on
switch.sw_tester_cl:
state: on
switch.sw_audio_auditorium_cl:
state: off
- name: Tv kijken
entities:
switch.sw_audio_auditorium_cl:
state: on
switch.sw_office_cl:
state: off
switch.sw_tester_cl:
state: off
several automations:
- alias: Opstaan
id: ‘1511601478446’
trigger:
platform: state
entity_id: input_select.scenes
to: Opstaan
condition: []
action:
service: scene.turn_on
entity_id: scene.opstaan
- alias: Aan de slag
id: '1511601478447'
trigger:
platform: state
entity_id: input_select.scenes
to: Aan de slag
condition: []
action:
service: scene.turn_on
entity_id: scene.aan_de_slag
- alias: Tv kijken
id: '1511601478448'
trigger:
platform: state
entity_id: input_select.scenes
to: Tv kijken
condition: []
action:
service: scene.turn_on
entity_id: scene.tv_kijken
and my input-selector:
wat_te_doen:
name: Wat te doen?
icon: mdi:home
options:
- Opstaan
- Aan de slag
- Uit Huis
- Tv Kijken
- Naar bed
initial: Aan de slag