Bump version to 0.2.4

This commit is contained in:
vvzvlad 2023-10-03 17:26:13 +03:00
parent efa187466d
commit 9fa8ffbe28
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@vvzvlad/node-red-contrib-rn-combined-nodes", "name": "@vvzvlad/node-red-contrib-rn-combined-nodes",
"version": "0.2.3", "version": "0.2.4",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"keywords": [ "keywords": [

View File

@ -127,10 +127,10 @@ module.exports = function(RED) {
else msg_state_text = { payload: status_reason(msg) } else msg_state_text = { payload: status_reason(msg) }
if (msg.payload.current_temp === null && typeof msg.payload.current_temp === "undefined") msg_current_temp = null 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 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]); node.send([msg_mqtt_debug, msg_state_text, msg_current_temp]);
}); });