relevent frontend config:
entities:
- entities:
- entity: script.lights_mood
icon_height: 20px
name: Cozy lights
show_icon: false
show_name: true
tap_action:
action: call-service
service: script.lights_mood
service_data:
mood: cozy
target_room: livingroom
lights_mood script
alias: Lights Moods (Cozy/White)
sequence:
- choose:
- conditions:
- condition: template
value_template: "{{ (target_room == \"masterbed\") and (mood == \"cozy\") }}"
sequence:
- data:
entity_id: light.group_masterbed
hs_color:
- 268.267
- 88.235
service: light.turn_on
- conditions:
- condition: template
value_template: "{{ (target_room == \"masterbed\") and (mood == \"white\") }}"
sequence:
- data:
color_temp: 366
entity_id:
- light.group_masterbed
service: light.turn_on
- conditions:
- condition: template
value_template: "{{ (target_room == 'livingroom') and (mood == 'cozy') }}"
sequence:
- data:
entity_id: light.group_livingroom
hs_color:
- 268.267
- 88.235
service: light.turn_on
- conditions:
- condition: template
value_template: "{{ (target_room == 'livingroom') and (mood == 'white') }}"
sequence:
- service: light.turn_on
data:
color_temp: 223
target:
entity_id:
- light.group_livingroom
mode: parallel
fields:
mood:
description: Type of light mood
example: cozy
required: true
target_room:
description: Physical space to apply the effect
example: masterbed
required: true
max: 10