Hi everybody,
for the morning, I have an alarmclock and my lamps turn on.
I made an Input_select for differents scene for the lamps:
But now I need to link my choice with the script of the alarmclock !! (For each Hue’s scene I have an input_boolean to turn them on)
I wrote this but script failed:
Input_select:
scene_morning:
name: Thèmes des Lumières
options:
- plein_phare
- tv
- printemps_floral
- aurore_boreale
- crepuscule_tropical
- coucher_savane
- veilleuse
- matin
initial: matin
icon: mdi:lightbulb-on-outline
automation
- alias: Alarm_Clock
initial_state: 'on'
hide_entity: False
trigger:
platform: template
value_template: '{{ states.sensor.time.state == states.sensor.alarm_time.state }}'
condition:
condition: state
entity_id: input_boolean.present
state: 'on'
action:
- service: script.turn_on
entity_id: script.breakfast
script:
breakfast:
sequence:
- service: input_boolean.turn_on
entity_id: input_boolean.{{ states.input_select.scene_morning.state }}
- service: switch.turn_on
entity_id: switch.coffee
But my script doesn’t work…
Could you help me with it ?
Thank you !!!