Naar de inhoud

Node-RED push notifications to your Android phone

The anypush node sends msg.payload from any Node-RED flow to your Android phone as a notification, with a title, a priority and a link, or reports a job's exit status with an alert when a flow goes quiet.

Free to start, no ads. Android 7 and up.

Add the anypush node

  1. In anypush, tap New, choose Script or app, and copy the channel's address.
  2. In Node-RED, open the menu, Manage palette, Install, search for node-red-contrib-anypush and install it. Or run npm install node-red-contrib-anypush in ~/.node-red and restart.
  3. Drop the anypush node (under network) into a flow, add a channel and paste the address. Node-RED keeps it encrypted with its credentials and leaves it out of exported flows.
  4. Pick what msg.payload is: a message, or a job's exit status. Title, priority and URL can come from the node or from msg.topic, msg.priority and msg.url.
The anypush node's edit dialog in Node-RED: channel Backups, Send msg.payload as a message, title nas, priority high, URL https://nas.local:5001

Two modes

A message when it matters, silence when it works

Two test flows, each an http in node, a function node, the anypush node and an http response, so curl can start them. The first sends a message; the second reports a status, where 0 is a heartbeat that sends nothing to the phone and anything else is a high-priority alert, at most once an hour per status.

Arrived
"nas", high priority, "Disk at 91%", opens https://nas.local:5001 on tap. "Exited with status 2", high priority, with the rsync line as the text.
Output
The node passes the message on with msg.payload set to anypush's answer, and shows sent, status 2 sent or duplicate under the node.
Errors
A refused or failed send goes to a catch node, never with the channel's address in it.
// function node, before an anypush node set to
// "msg.payload as a message", title nas, priority high, URL https://nas.local:5001
msg.payload = `Disk at ${msg.payload.percent}%`;
return msg;

// curl -H "Content-Type: application/json" -d '{"percent":91}' http://localhost:1880/disk

{"duplicate":false,"id":988}

// function node, before an anypush node set to "msg.payload as a job status"
msg.log = msg.payload.log;        // the end of the job's log, the alert's text
msg.payload = msg.payload.status; // 0 to 255
return msg;

// curl ... -d '{"status":0,"log":""}' http://localhost:1880/job
// curl ... -d '{"status":2,"log":"rsync: [sender] change_dir \"/srv/photos\" failed: No such file or directory (2)"}' http://localhost:1880/job

{"heartbeat":true} {"duplicate":false,"id":989}

Who watches Node-RED?

An inject node that sends 0 every five minutes into an anypush node set to job status keeps a channel's clock from running out. Give the channel a deadline in the app, say 15 minutes: if Node-RED or the machine under it stops, the heartbeats stop and your phone gets one alert. The package ships this flow: Menu, Import, Examples, node-red-contrib-anypush, report-a-job-status.

Tested on 29 November 2026

Run on Node-RED 5.0.10 with Node.js 24 (the nodered/node-red Docker image) and node-red-contrib-anypush 0.1.0, installed from npm through the palette manager, against a live channel. The message flow arrived as "nas", high priority, "Disk at 91%", opening https://nas.local:5001 when tapped, and the node showed sent. The job status flow with 0 answered {"heartbeat":true} and sent nothing to the phone; with 2 it arrived as "Exited with status 2", high priority, with the rsync line as the text, and the node showed status 2 sent.

Other ways

Node-RED's own http request node can POST to the channel's address too, with msg.payload as the text: the anypush node adds the title, priority and link fields, the job status mode and errors that never show the address. If you run Home Assistant's companion app or your own ntfy server, those work from Node-RED as well. The node is open source on GitHub and listed in the Node-RED flow library. anypush has no iPhone app.

Questions

Which Node-RED versions does it need?

Node-RED 3.0 or later on Node.js 18 or later. We tested it on Node-RED 5.0.10 with Node.js 24.

Can msg.topic be the title?

Yes. When the node's Title is empty, msg.topic becomes the title. msg.priority and msg.url work the same way for priority and the link.

Can I send an alert when a flow fails?

Yes. Wire a catch node to a change node that sets msg.payload to msg.error.message, then to an anypush node with priority high. In our test, a function node that threw arrived as "Error: disk check failed: /srv at 97%".

Does it work on an iPhone?

No. anypush is an Android app, Android 7 and up.

Get anypush

Free to start, no ads. Android 7 and up.