MQTT Last Will & Testament from HA

I can’t seem to get the LWT messages working in HA.

Here is my config:

mqtt:
  broker: 192.168.1.11
  port: 1883
  client_id: home-assistant-3
  username: !secret MQTT_user  
  password: !secret MQTT_password
  discovery: true
  discovery_prefix: homeassistant
  birth_message:
    topic: 'hass/status'
    payload: 'online'
  will_message:
    topic: 'hass/status'
    payload: 'offline'

But the “hass/status” topic doesn’t show up anywhere in my broker. All of my other MQTT stuff is working perfectly. I just started trying to use it to get set up for the new OZW integration discovery.

Can anyone see where I’m doing something wrong?

1 Like

Now that you mention it, I have the birth/will-message in my configuration.yaml for ages, but I have never seen it in mqtt-explorer.

I was digging around and I actually did see the “birth” message was sent. But it’s not retained so if you restart the MQTT sniffer then that message won’t show up until you restart HA with the sniffer already running.

Seems to be a known issue.

But it doesn’t look like anyone is doing anything about it either.

Yup, just upgraded my test-HA to 0.112.0b0, and this appeared :

image