# Read storm cells in Node-RED

> Get a login for your own MQTT client and read your storm cell topics in Node-RED.

Home Assistant · How-to guide · https://wxalerts.org/docs/integrations/home-assistant/node-red/

## Get a login

Open [Credentials](/account/#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:

1. **Server**: `wss://mqtt.wxalerts.org/mqtt`. A `wss://` address makes
   Node-RED connect over WebSocket with TLS.
2. **Security**: the username and password of your MQTT credential.
3. 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](/account/#credentials) page. See
[Connecting](/docs/integrations/home-assistant/mqtt-topics/#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](/docs/integrations/home-assistant/mqtt-topics/).
