diff --git a/pool.js b/pool.js index 355ab3d..73198b8 100644 --- a/pool.js +++ b/pool.js @@ -295,7 +295,10 @@ MQTT.subscribe( "zigbee2mqtt/Piscine", function (topic, msg) { status.tick_mqtt++; - print("[POOL] mqtt", topic); + print("[POOL] mqtt", topic, msg); + if (msg == "") { + return; + } let obj = JSON.parse(msg); if (obj.temperature === undefined) { return;