Node Red - iOS Critical Notifications via Home Assistant

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
61,977
Reaction score
23,618
Location
Cape Town
Okay so I have these in place on Home Assistant to alert me when the garage door or front gate are left open.

The problem is with Home Assistant I can only have it run /15 minutes which means it often false triggers as I happen to come home at :00, :15, :30, :45 etc.

In Node Red I can simply setup a 15 minute delay from when the gate/garage is opened and then notify me if that delay completes.

However for the life of me I cannot figure how the hell you get this formatted for Node Red.

759692

A normal message just looks like this in Node Red and works fine, but I don't know how to add the extra data to this one.

759694

Alternatively, if I can't make that work is there a way to use the 15 minute timer in Home Assistant so that it would also repeat if missed? The only way I've managed to do it is with a Time Pattern trigger and then an OR condition for front gate or garage door.

Ultimately would prefer Node Red, the HA implementation was just a work around until I came here to ask.
 
@SauRoNZA

Basically, converting it to JSON should do the trick, stick this into that Data field.

JSON:
{
    "data": {
        "push": {
            "sound": {
                "critical": 1,
                "name": "default",
                "volume": 0.5
            }  
        }
    },
    "message": "{{payload}}"
}
 
@SauRoNZA

Basically, converting it to JSON should do the trick, stick this into that Data field.

JSON:
{
"data": {
"push": {
"sound": {
"critical": 1,
"name": "default",
"volume": 0.5
} 
}
},
"message": "{{payload}}"
}

Yeah that’s what I thought as well and I had something similar to the above if not the exact same in there but had no luck.

But easy thing to cock up with a quote or bracket so let me try yours.

Thanks!
 
Top
Sign up to the MyBroadband newsletter
X