can anyone explain to me how i set the Service Attributes correctly?
I want to trigger a notification, but i don’t know how to set multi-level keys for the service call.
As an example, in HomeAssistant i would write:
service: notify.mobile_app
data:
message: Some Text
title: Some Title
data:
group: groupXY
notification_icon: mdi:newspaper
I’m able to set the message and title, but i don’t know how to set the group or notification_icon.
I have not used Home Assistant with n8n yet, so I am not sure if n8n can handle nested attributes like the one in your YML I am afraid. Perhaps you can try a dot notation (data.group) in a first step, like this?
Hi @axelcypher, I finally managed to at run Home Assistant locally and while the YAML syntax would give me an error for the data field, I wouldn’t get an error when sending a JSON object for this field like so: