# MQTT topics

> Your account's places, storm cells, current conditions, forecasts and feed status as retained MQTT topics, for Node-RED or any MQTT client.

Home Assistant · Reference · https://wxalerts.org/docs/integrations/home-assistant/mqtt-topics/

The Home Assistant integration reads a small set of topics that belong to your
account. Any MQTT client can read them too, so Node-RED, a script or a
dashboard of your own gets the same storm cell alerts.

Your own client logs in with an MQTT credential made on the
[Credentials](/account/#credentials) page of your account, as described
in [Read storm cells in Node-RED](/docs/integrations/home-assistant/node-red/#get-a-login).
It can be revoked from the same page. For how the integration's own instances
are counted, see
[Manage instances and options](/docs/integrations/home-assistant/manage-instances/).

## Connecting

| | |
| - | - |
| URL | `wss://mqtt.wxalerts.org/mqtt` |
| Host and port | `mqtt.wxalerts.org`, `443` |
| Transport | MQTT over WebSocket, path `/mqtt`, TLS |
| Username | The username from the Credentials page, starting `ha-` |
| Password | The password shown when you created it |
| Topic prefix | `V2/<account id>/HA/<instance>/` |

`<instance>` is your username without the `ha-`: the login `ha-k3j9x2mq7p4w`
reads `V2/<account id>/HA/k3j9x2mq7p4w/`. `<account id>` is your account's
number. It is the number in the topic filters shown on the
[Credentials](/account/#credentials) page, such as `V2/42/NWS/#`.

  The same messages are also published under the older prefix
  `wxalerts/u/<username>/` until Friday, January 1, 2027. Move your client to
  the `V2/` prefix before then. The subtopics and payloads are the same.

The login can subscribe to its own prefix and to your account's alerts on
`V2/<account id>/NWS/#`, described in the
[MQTT alerts feed](/docs/developers/mqtt/alerts/). For now it can also read
the first feed's alert tree, `wxalerts/nws/v1/#`, which is deprecated and
stops on the same day. Publishing is denied.

Use a client id that is unique to each client. Two clients sharing one will
keep disconnecting each other.

## Topics

Everything under your prefix is **retained** and published at **QoS 1**, so a
client that subscribes gets the current state at once.

| Topic | Payload |
| - | - |
| `places` | Your saved places |
| `status` | Whether the server is running, refreshed every 120 seconds |
| `storms/place/<place_id>/<storm_id>` | One storm cell threatening one place |
| `conditions/place/<place_id>` | The current observation at one place |
| `forecast/place/<place_id>` | The forecast for one place, 7 days and 48 hours |

Each is under your prefix, so `places` is `V2/<account id>/HA/<instance>/places`.
Subscribe to everything with `V2/<account id>/HA/<instance>/#`, or only storm
cells with `V2/<account id>/HA/<instance>/storms/place/+/+`.

### places

A list of the places on your account. `id` is a string and matches the
`<place_id>` in the other topics. `same` is the county code, when the place
has one. The point is rounded to three decimals, about 110 m.

```json
[
  { "id": "412", "name": "Home", "lat": 30.6327, "lon": -87.0397, "same": "012113" },
  { "id": "418", "name": "Cabin", "lat": 34.8712, "lon": -85.5091, "same": "013083" }
]
```

### status

```json
{ "online": true, "updated_at": "2026-11-08T21:14:00Z" }
```

If `updated_at` is more than a few minutes old, or `online` is `false`, treat
the storm topics as stale rather than as an all clear. An offline status
carries a `reason`: `revoked`, `over_limit` or `plan_lapsed`.

```json
{ "online": false, "reason": "revoked", "updated_at": "2026-11-08T21:14:00Z" }
```

### storms

One retained message per storm cell per place. An **empty retained message**
on the same topic means the cell no longer threatens that place, so delete it
on your side.

```json
{
  "storm_id": "781234",
  "kind": "cell",
  "place_id": "412",
  "place_name": "Home",
  "episode": "open",
  "eta_min": 18,
  "rung": 40,
  "rung_label": "Thunderstorm Risk",
  "hazards": ["hail", "wind"],
  "prob_severe": 46,
  "prob_tor": 3,
  "prob_hail": 38,
  "prob_wind": 22,
  "speed_kmh": 52.0,
  "bearing_deg": 64,
  "distance_km": 15.6,
  "issued_at": "2026-11-08T21:02:11Z",
  "updated_at": "2026-11-08T21:12:40Z"
}
```

| Field | Meaning |
| - | - |
| `storm_id` | Stable id for the cell. A rotation has an id starting `couplet-`. |
| `kind` | `cell` for a storm cell, `couplet` for a rotation. |
| `episode` | `open` when it first threatens the place, `escalate` when the threat level rises, `update` for anything else. |
| `eta_min` | Minutes to arrival. `0` when it has arrived, `null` when it is not moving. |
| `rung`, `rung_label` | The threat level as a number and in words. Higher is worse. |
| `hazards` | What the cell threatens, such as `hail`, `wind` or `tornado`. |
| `prob_severe`, `prob_tor`, `prob_hail`, `prob_wind` | Probabilities in percent. |
| `speed_kmh`, `bearing_deg` | Motion, toward a compass bearing. |
| `distance_km` | Distance from the place. |
| `issued_at`, `updated_at` | When the episode began and when it was last refreshed. |

Alert on `open` and `escalate`. An `update` is the same storm with new numbers.

### conditions

The current observation at a place, from the surface stations within 50 miles
that reported in the last two hours. Units are metric and fixed. Every key is
always present, and a value nobody reported is `null`. An **empty retained
message** means the place was deleted.

```json
{
  "place_id": "412",
  "place_name": "Home",
  "station_id": "metar:KPNS",
  "station_name": "Pensacola International Airport",
  "distance_km": 3.4,
  "observed_at": "2026-11-08T18:53:00Z",
  "temperature_c": 22.4,
  "dewpoint_c": 14.1,
  "relative_humidity": 59.0,
  "wind_speed_kmh": 18.5,
  "wind_gust_kmh": 33.3,
  "wind_direction_deg": 200,
  "pressure_hpa": 1016.2,
  "visibility_km": 16.1,
  "condition": "Light rain, mist",
  "condition_code": "rain",
  "feels_like_c": 22.4,
  "precip_last_hour_mm": 0.5,
  "is_day": true
}
```

| Field | Meaning |
| - | - |
| `station_id`, `station_name` | The station that supplied the most readings, such as `metar:KPNS`, `cwop:EW1958` or `aprs:KN4OQW-9`. A reading it lacks can come from another station nearby. |
| `distance_km` | From the place to that station. |
| `observed_at` | That station's report time, in UTC. |
| `temperature_c`, `dewpoint_c`, `feels_like_c` | Degrees C. Feels like is the heat index or the wind chill when either applies. |
| `relative_humidity` | Percent. |
| `wind_speed_kmh`, `wind_gust_kmh`, `wind_direction_deg` | Wind, and the direction it blows from in degrees true. |
| `pressure_hpa` | Sea level pressure, never a raw station pressure. |
| `visibility_km`, `precip_last_hour_mm` | Visibility, and rain in the last hour when a station nearby has a gauge. |
| `condition`, `condition_code` | The weather in words, and one code from a fixed list (below). |
| `is_day` | Whether the sun is up at the place now. |

When no station near the place reported recently, every observed field is
`null` and only the condition may be set.

`condition_code` is one of `clear`, `clear_night`, `partly_cloudy`, `cloudy`,
`overcast`, `fog`, `haze`, `smoke`, `dust`, `drizzle`, `rain`, `heavy_rain`,
`showers`, `freezing_rain`, `sleet`, `snow`, `heavy_snow`, `rain_snow`, `hail`,
`thunderstorm`, `squall`, `funnel_cloud` or `tornado`. A code is never renamed;
new ones may be added.

### forecast

The forecast for a place from the National Blend of Models: up to 7 local days
from today, and every hour from the one in progress for 48 hours. It is
published on a new model cycle and at the top of every hour. Units are metric
and fixed, and a value the model does not give is `null`. Outside the model's
grid (offshore, abroad) `daily` and `hourly` are empty lists.

```json
{
  "issued_at": "2026-11-08T13:00:00Z",
  "source": "nbm",
  "daily": [
    {
      "date": "2026-11-08",
      "datetime": "2026-11-08T06:00:00Z",
      "condition_code": "rain",
      "temp_high_c": 24.5,
      "temp_low_c": 9.0,
      "precip_probability": 62,
      "precip_mm": 4.3,
      "wind_speed_kmh": 22.2,
      "wind_gust_kmh": 40.7,
      "wind_direction_deg": 0,
      "humidity": 66,
      "uv_index": null,
      "summary": "Rain likely"
    }
  ],
  "hourly": [
    {
      "datetime": "2026-11-08T19:00:00Z",
      "condition_code": "partly_cloudy",
      "temperature_c": 21.0,
      "apparent_temperature_c": 21.0,
      "dewpoint_c": 12.3,
      "humidity": 58,
      "precip_probability": 10,
      "precip_mm": 0.0,
      "wind_speed_kmh": 14.4,
      "wind_gust_kmh": 25.1,
      "wind_direction_deg": 180,
      "cloud_cover": 45,
      "is_daytime": true
    }
  ]
}
```

| Field | Meaning |
| - | - |
| `issued_at` | The model cycle the forecast is from, in UTC. |
| `daily[].date`, `datetime` | The local date, and its local midnight in UTC. Today covers only the hours left. |
| `daily[].temp_high_c`, `temp_low_c` | The day's high and low, degrees C. |
| `daily[].precip_probability`, `precip_mm` | The day's highest hourly chance, and its total. |
| `daily[].wind_speed_kmh`, `wind_gust_kmh`, `wind_direction_deg` | The day's highest wind and gust, and its prevailing direction. |
| `daily[].uv_index` | Always `null`. |
| `daily[].summary` | The day in words, such as "Rain likely". |
| `hourly[].datetime` | The hour, in UTC. |
| `hourly[].apparent_temperature_c` | Feels like, as in the conditions topic. |
| `hourly[].precip_mm` | Liquid over the step ending at this hour. |
| `hourly[].cloud_cover`, `is_daytime` | Cloud in percent, and whether the sun is up at that hour. |

`condition_code` uses the same list as the conditions topic. In a forecast it
follows the chance of precipitation, so an hour with a 60% chance of rain is
`rain`. The conditions topic never does that; it reports what is observed.
