Hi,
I’m trying to get the sample notification working in iOS using node-red as my automation flow. Planning to expand that later.
configuration.yaml looks like this -
ios:
push:
categories:
- name: Alarm
identifier: 'alarm'
actions:
- identifier: 'SOUND_ALARM'
title: 'Sound Alarm'
activationMode: 'background'
authenticationRequired: true
destructive: true
behavior: 'default'
- identifier: 'SILENCE_ALARM'
title: 'Silence Alarm'
activationMode: 'background'
authenticationRequired: true
destructive: false
behavior: 'textInput'
textInputButtonTitle: 'Silencio!'
textInputPlaceholder: 'Placeholder'
Node-Red -
function Push has all the necessary code to link to the identifier ‘alarm’
msg.payload =
{
"data": {
"title": "Check this out!",
"message": "Something happened at home!",
"data": {
"push": {
"category": "alarm"
}
}
}
}
return msg;
I could get this partially working. I see title and message on my iPhone but not the buttons. After the config changes, I restarted hassio and refreshed the notification settings on the app. I can see ‘SOUND_ALARM’ and ‘SILENCE_ALARM’ populated in the app. They just are not appearing on the screen.
What am I doing wrong ?