diff --git a/package.json b/package.json index 7aa1f58..4314c43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vvzvlad/node-red-contrib-rn-combined-nodes", - "version": "0.2.2", + "version": "0.2.3", "description": "", "main": "index.js", "keywords": [ diff --git a/thermostat-analyzer.js b/thermostat-analyzer.js index 72ec529..938fc0d 100644 --- a/thermostat-analyzer.js +++ b/thermostat-analyzer.js @@ -120,6 +120,8 @@ module.exports = function(RED) { } node.on('input', function(msg) { + let msg_current_temp + let msg_state_text if (msg.payload.heater_status === null && typeof msg.payload.heater_status === "undefined") msg_state_text = null else msg_state_text = { payload: status_reason(msg) }