From 9b8f4b040df67e4f6ab3ddd51996f43478c33848 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Tue, 3 Oct 2023 16:13:30 +0300 Subject: [PATCH] Bump version to 0.1.8 --- package.json | 2 +- thermostat.html | 13 +++++++++---- thermostat.js | 5 +++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 20af4b1..a2fe44b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vvzvlad/node-red-contrib-rn-combined-nodes", - "version": "0.1.7", + "version": "0.1.8", "description": "", "main": "index.js", "keywords": [ diff --git a/thermostat.html b/thermostat.html index 47a4a19..1383ea3 100644 --- a/thermostat.html +++ b/thermostat.html @@ -4,8 +4,9 @@ color: '#F3B567', paletteLabel: 'C-Thermostat', defaults: { - name: {value:"", required:true}, - tag: {value:""} + name: {value:""}, + room: {value:"", required:true}, + zone: {value:"", required:true} }, inputs: 1, outputs: 2, @@ -23,8 +24,12 @@
- - + + +
+
+ +
diff --git a/thermostat.js b/thermostat.js index cceb269..e3ec668 100644 --- a/thermostat.js +++ b/thermostat.js @@ -1,7 +1,8 @@ module.exports = function(RED) { function thermostat(config) { RED.nodes.createNode(this,config); - this.tag = config.tag; + this.room = config.room; + this.zone = config.zone; var node = this; var context = node.context(); @@ -179,7 +180,7 @@ module.exports = function(RED) { node.status({ text: debug_text("return_debug") }) let msg_heater_status = { payload: heater_status } - let msg_extended_stats = { payload: extended_stats, topic: node.tag } + let msg_extended_stats = { payload: extended_stats, room: node.room, zone: node.zone } if (heater_status === null || typeof heater_status === "undefined") { msg_heater_status = null