Im trying to make a dashboard option that has a list of all the kids in my house, i have a entity list thing that i will just add all the names, john, john2 ect.
heres the current script i have for that one (only one test name rn but there will be more):
type: vertical-stack
cards:
- show_name: true
show_icon: true
type: button
name: Wake Up Owen
icon: mdi:alarm
tap_action:
action: call-service
service: script.wake_up_kid
service_data:
kid_name: owen
visibility:
- condition: state
entity: switch.owens_bedroom_main_lights_2
state: 'off'
heres the script it gets (script.wake_up_kid):
type: vertical-stack
cards:
- show_name: true
show_icon: true
type: button
name: Wake Up Owen
icon: mdi:alarm
tap_action:
action: call-service
service: script.wake_up_kid
service_data:
kid_name: owen
visibility:
- condition: state
entity: switch.owens_bedroom_main_lights_2
state: 'off'
when i try to change the script to this ^, it dosent let me. instead it give me this error message:
Message malformed: Unable to determine action @ data['sequence'][0]
please help me with this lol ive been trying for a while. thanks!!