diff -r 92b546d4a839 -r 3c4c6d5e4b8d thermferm/mqtt.c --- a/thermferm/mqtt.c Sat Jul 14 21:15:20 2018 +0200 +++ b/thermferm/mqtt.c Sat Jul 14 21:36:08 2018 +0200 @@ -695,6 +695,8 @@ * After that, remove the retained topic. */ syslog(LOG_NOTICE, "MQTT disconnecting"); + publisher(mosq, topic_base((char *)"DBIRTH"), NULL, true); // Not always needed, but ... + publisher(mosq, topic_base((char *)"DDEATH"), NULL, true); publisher(mosq, topic_base((char *)"NBIRTH"), NULL, true); publisher(mosq, topic_base((char *)"NDEATH"), NULL, true); mqtt_last_mid = mqtt_mid_sent;