Get a login
Open Credentials on your account, choose New credential, pick MQTT credential, give it a name such as Node-RED and choose Create credential. Copy the username and password; the password is shown once. It can read your own topics as well as your alerts, and you can revoke it from the same page.
Connect Node-RED
Add an mqtt in node and a new broker config:
- Server:
wss://mqtt.wxalerts.org/mqtt. Awss://address makes Node-RED connect over WebSocket with TLS. - Security: the username and password of your MQTT credential.
- Back on the node, Topic:
V2/<account id>/HA/<instance>/storms/place/+/+, QoS 1, Output: a parsed JSON object.
<instance> is your username without the ha-, and <account id> is the
number in the topic filters on the
Credentials page. See
Connecting. A flow
built on the older wxalerts/u/<username>/... topics keeps working until
Friday, January 1, 2027; change its topic before then.
Follow it with a switch node on msg.payload.episode that passes open
and escalate.
An empty payload (the storm has cleared) arrives as an empty string, so check for it before reading fields.
The topics and payload fields are listed in MQTT topics.