Actionable notifications won't work

Hello,

I’m trying to make some actionable notifications with the iOS app, but I can’t get the actions to work.

I’m using Hass.io automation editor to do the automation work, and got the following in the “Service data” field;

{
“data”: [
{
“push”: [
{
“badge”: 5,
“category”: ““ALARM””
}
]
}
],
“message”: “Vil du tilkoble alarmen?”
}

I get the following error in the log;

2017-09-20 07:37:07 ERROR (MainThread) [homeassistant.core] Invalid service data for notify.ios_mathias__iphone_7_plus: expected dict for dictionary value @ data[‘data’]. Got [OrderedDict([(‘push’, [OrderedDict([(‘badge’, 5), (‘category’, ‘ALARM’)])])])]

Any advice? :slight_smile:

Additional question - what does the badge-key do?

Okay, I managed to make it work with the following setup;

{
“data”: {
“push”: [
{
“badge”: 5,
“category”: “ALARM”
}
]
},
“message”: “Vil du tilkoble alarmen?”
}

But I dont get any actions in the notification?

Did you update the push settings in the app?

What does your iOS config look like.