Message malformed: extra keys not allowed @ data['action'][0]['message']

I am trying to create my first automation. What is wrong here? I have tried to follow the docs for how to setup an automation using Twilio.

I get the error message

Message malformed: extra keys not allowed @ data['action'][0]['message']

Hi there,

It seems to me that you don’t need the quotes.

I also have the same error message. I’ve tried mobile app notification and telegram notifications - all with the same result.
Removing quotes seems doesn’t have any effect.
Any other ideas what could it be?

Maybe it is possible to see what it tries to put in message parameter?

Did you figure out how to fix this? if yes please post the resolution

1 Like

Yes, I would need a resolution too!

i was able to resolve this… issue just seems to be that it needs an extra line after the 1st line in Service data. see below:


# Gmail/SMS notifications
  - name: gmail
    platform: smtp
    port: 587
    timeout: 15
    sender: [email protected]
    encryption: starttls
    starttls: true 
    username: [email protected]
    password: mypassword
      - [email protected]
    sender_name: My Home Assistant

1 Like

I added the data: section as a parent to the message:. I switched from the UI to YAML mode. When I first switched to YAML mode, it was setup like this. I moved my message to the second message: line and deleted the first. Then I was able to save the automation without and error. About to check if it actually works now.

service: notify.notify
message: Front Door Opened