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']
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.
Hi
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
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
notify:
- name: gmail
platform: smtp
server: smtp.gmail.com
port: 587
timeout: 15
sender: [email protected]
encryption: starttls
starttls: true
username: [email protected]
password: mypassword
recipient:
- test@txtnet
sender_name: My Home Assistant
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
data:
message:
I found a fix that worked for me.
Click to update the yaml for the action & you’ll see two empty string variables, ‘target’ and ‘message’.
Delete those & add a data + message node.
This will allow you to save the automation (no guarantees if it actually works afterwards though)
I am having the exact problem with the notify messaging and it is not working despite all the suggestions:
action:
–
File “C:\Users\rsiva\Documents\Hass\HassWP_2021.1.1\python-3.8.7\lib\site-packages\voluptuous\schema_builder.py”, line 432, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data[‘messsage’]
Thanks
rsiva-tech
The formatting got messed up above during cut and paste but there was no syntax error.
action: