Has anyone setup critical notifications in Node Red? https://companion.home-assistant.io/en/notifications/critical
Looks like just a couple extra parameters added to your JSON. Are you having issues calling it?
I have not tried yet. Just wondering if would be possible. What would I need to add to the JSON?
If it’s a service you can call in Home Assistant, you can call it in Node Red.
Well, when you create the service call in Node Red, you just follow the example they have provided on that page. Yaml and JSON are extremely similar, so it shouldn’t be hard to figure out the difference between regular notify and critical notify. Looks like they add a critical: 1
in there.
Thanks I got it working.
{
"title": "Just a test!",
"message": "Testing if this works",
"data": {
"push": {
"sound": {
"name": "default",
"critical": 1,
"volume": 1
}
}
}
}
Works perfectly for me
Not sure why this isn’t working for me… Here’s a snapshot of my debug log in NR. The first entry is a debug output of the payload message, and the second entry is the error from a notify service call node.
What doesn’t make sense to me is that I can copy the object value from that first entry in the NR debug log and paste it straight into the Develper Tools Services function in HA, and it works perfectly.
Without looking into your information, make sure you’re on the latest version (11.0.4). The previous version broke all of my notifications. I was about to start major troubleshooting but then the update came out and it fixed mine.