#Message malformed: Unable to determine action @ data['sequence'][0]

1 messages · Page 1 of 1 (latest)

coral frigate
#

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!!

crimson dome
#

Technically this looks to belong under the #1284965988642590891 channel BUT this looks like a formating issue

reef hull
#

There is a Dashboard topic. Not sure if the Dashboard Guru's will see this here.

#

jinx

crimson dome
#

@coral frigatemake sure you didn't accidently add any additional spaces etc, try reverting and see if it work.

coral frigate
#

ive tried multiple variations

#

i cant seem to get this working

#

this is now my script:

wake_up_kid:
  alias: "Wake Up Kid"
  sequence:
    - choose:
        - conditions:
            - condition: template
              value_template: "{{ kid_name == 'owen' }}"
          sequence:
            - service: tts.google_translate_say
              data:
                cache: false
                entity_id: media_player.owens_room_clock
                message: "Wake up Owen!"
        - conditions:
            - condition: template
              value_template: "{{ kid_name == 'gavin' }}"
          sequence:
            - service: tts.google_translate_say
              data:
                cache: false
                entity_id: media_player.gavins_room_clock
                message: "Wake up Gavin!"
      default:
        - service: tts.google_translate_say
          data:
            cache: false
            entity_id: media_player.default_room_clock
            message: "Wake up!"

#

and this is the card:

entities:
  - entity: script.wake_up_kid
    name: Wake Up Owen
    tap_action:
      action: call-service
      service: script.wake_up_kid
      service_data:
        kid_name: owen
    icon: mdi:alarm
  - entity: script.wake_up_kid
    name: Wake Up Gavin
    tap_action:
      action: call-service
      service: script.wake_up_kid
      service_data:
        kid_name: gavin
    icon: mdi:alarm
type: entities
visibility:
  - state: 'off'
    condition: state
    entity: switch.owens_bedroom_main_lights_2
title: Wake Up Kids
#

the card one workes alright its just the script

#

im pretty sure there isnt any spaces

coral frigate
#

oh sorry i didnt realize this was a dashboard issue

reef hull
#

That's ok, someone found you here.

coral frigate
#

oh alr

#

btw

#

do you know why this isnt working??

reef hull
#

Not a Dashboard person. I use the default ones only.

coral frigate
#

wym

reef hull
#

I use the gui only on dashboard stuff

crimson dome
#

it's a formatting error. if it had worked prior and all you had touched was the Script than you fubared something in the area where you edited it most likely. a ", ' or - or space in the wrong space can all cause it

coral frigate
#

could you possibly help me find it?

#

ive been looking for a while

crimson dome
#

I was looking at what you posted

#

on my screen it's kind of mushed so it's near impossible for me to see space mishaps

coral frigate
#

i can send ss

crimson dome
#

I don't see anything that stands out. what did you change? what was it before when it was working?

coral frigate
#

well

#

im trying to make a list of all the kids, i could just use seperate scripts but that feels unnesecary so i wana to do it this way

#

i didnt have anything before

crimson dome
#

oh

coral frigate
#

i legit got this generated from chat gpt lol

crimson dome
#

well that makes a diffrence lol

#

do not use chat gpt

coral frigate
#

if you want to help me make one from scratch that would be much appreciated lol

crimson dome
#

so there is so much here that can prevent this from ever working. everything from having the google integration set up properly to to the devices you want to cast a tts too existing and being able to do that. do you have all of that in place?

coral frigate
#

yeah

#

i did a tutorial for that and stuff

crimson dome
#

ok well the first step is to just pick one of those devices and create a script that works without adding any of the additional condition stuff

coral frigate
#

alright

#

i had that before

crimson dome
#

so you made a script that would send a tts and it worked?

coral frigate
#

belive so

#

let me make it again rq

crimson dome
#

ok

coral frigate
#

heres the card

#

ok it workes

#

i hear my google going off when i hit it lol

#

herse the script

coral frigate
crimson dome
#

ok so the most basic way to handling what you want todo is to create two scripts. one for each kid. then on your dashboard since it looked like you had two buttons already you would just use a service call to each of the script for the correct kid

#

from what you posted above I am not sure which card you are actually using

crimson dome
#

oh i see the entities card

coral frigate
#

alr im makign 2 scripts

#

i did it !!!

#

thanks dude

crimson dome
#

at some point I highly suggest you start to tinker. the best way to learn HA is to tinker while also looking up how other people accomplish things that is similar or even exactly like what you want do suchas combing those two scripts into one and being able to call diffrent parts of a single script etc

#

takes time, but that is part of the fun

coral frigate
#

yeah thats kinda what im doing

#

im making this with my dad

#

im trying to learn this language a little and get used to this lol

crimson dome
#

you'll get there and become a pro i have no doubt

coral frigate
#

thanks lol

#

yeah im trying lol

crimson dome
#

at the top of this thread

#

if you edit it, you can select tags

#

pick the resolved one

coral frigate