I’m having some trouble using variables in between frontend and scripts, anyone able to see what I’m getting wrong about the syntax?
Frontend:
type: 'custom:rgb-light-card'
entity: light.living_room_all
colors:
- type: call-service
service: script.1612752588267
data:
group_name: Living Room All
scene_name: Living Room Tiki
adapt_toggle: switch.adapt_livingroom
Script:
alias: Activate Hue Scene with Variable
mode: single
icon: 'mdi:cog'
fields:
group_name:
description: Hue Group
example: Living Room All
scene_name:
description: Hue Scene Name
example: Living Room Tiki
adapt_toggle:
description: Which Adaptive to Turn Off
example: switch.adapt_livingroom
sequence:
- service: hue.hue_activate_scene
data:
group_name: '{{ group_name }}'
scene_name: '{{ scene_name }}'
- service: switch.turn_off
entity_id: switch.adapt_livingroom