--- a/thermferm/thermferm.c Thu Jul 19 14:08:32 2018 +0200 +++ b/thermferm/thermferm.c Fri Jul 20 21:37:45 2018 +0200 @@ -1898,7 +1898,9 @@ publishDBirth(unit); unit->mqtt_flag &= ~MQTT_FLAG_BIRTH; } else { - publishDData(unit); + if (unit->mode != UNITMODE_OFF) { + publishDData(unit); + } unit->mqtt_flag &= ~MQTT_FLAG_DATA; } if (unit->mqtt_flag & MQTT_FLAG_DEATH) {