MQTT Discovery: to retain or not?

Can you elaborate on what you mean by “partial success”? Are you saying sometimes it purges the retained message and sometimes it doesn’t?

MQTT Discovery is Home Assistant’s means of discovering devices. Anything else using the same discovery topics is out of scope. Just speculating, but it may partially explain the Tasmota project’s decision to create its own MQTT-based discovery protocol (which also employs retained messages). Their own discovery protocol is now the default and Home Assistant’s has been deprecated (but can still be enabled via SetOption19 1).

1 Like