From 9fa8ffbe28b18e41f0dda74427eba399e9002c94 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Tue, 3 Oct 2023 17:26:13 +0300 Subject: [PATCH] Bump version to 0.2.4 --- package.json | 2 +- thermostat-analyzer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4314c43..7c0eab0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vvzvlad/node-red-contrib-rn-combined-nodes", - "version": "0.2.3", + "version": "0.2.4", "description": "", "main": "index.js", "keywords": [ diff --git a/thermostat-analyzer.js b/thermostat-analyzer.js index 938fc0d..bf26ead 100644 --- a/thermostat-analyzer.js +++ b/thermostat-analyzer.js @@ -127,10 +127,10 @@ module.exports = function(RED) { else msg_state_text = { payload: status_reason(msg) } if (msg.payload.current_temp === null && typeof msg.payload.current_temp === "undefined") msg_current_temp = null - else msg_state_text = { payload: get_current_temp(msg) } + else msg_current_temp = { payload: get_current_temp(msg) } let key = "fake" - let msg_mqtt_debug = { payload: analyzer(msg), topic: `debug/${node.zone}_${node.room}_/th/${key}`} + let msg_mqtt_debug = { payload: analyzer(msg), topic: `debug/${msg.topic}/th/${key}`} node.send([msg_mqtt_debug, msg_state_text, msg_current_temp]); });