Bump version to 0.2.2

This commit is contained in:
vvzvlad 2023-10-03 17:22:58 +03:00
parent 229bb0b52e
commit 96282ea333
2 changed files with 9 additions and 9 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.1", "version": "0.2.2",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"keywords": [ "keywords": [

View File

@ -121,16 +121,16 @@ module.exports = function(RED) {
node.on('input', function(msg) { node.on('input', function(msg) {
if (msg.payload.heater_status === null && typeof msg.payload.heater_status === "undefined") msg_state_text = null
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) }
let key = "fake" let key = "fake"
let mqtt_debug = { payload: analyzer(msg), topic: `debug/${node.zone}_${node.room}_/th/${key}`} let msg_mqtt_debug = { payload: analyzer(msg), topic: `debug/${node.zone}_${node.room}_/th/${key}`}
let state_text = { payload: status_reason(msg) }
let current_temp = { payload: get_current_temp(msg) }
if (heater_status === null || typeof heater_status === "undefined") { node.send([msg_mqtt_debug, msg_state_text, msg_current_temp]);
msg_heater_status = null
}
node.send([mqtt_debug, state_text, current_temp]);
}); });