Bump version to 0.1.9
This commit is contained in:
parent
9b8f4b040d
commit
a7dc699637
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vvzvlad/node-red-contrib-rn-combined-nodes",
|
||||
"version": "0.1.8",
|
||||
"version": "0.1.9",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
@ -130,12 +130,23 @@ module.exports = function(RED) {
|
||||
|
||||
|
||||
debug_text(`W-mode: ${window_mode}`)
|
||||
|
||||
|
||||
let mqtt_control = topic.split('/')
|
||||
if (mqtt_control.length === 3 && mqtt_control[0] === 'control') {
|
||||
if (mqtt_control[2] === node.zone || mqtt_control[2] === node.zone + "_" + node.room || mqtt_control[2] === "all") {
|
||||
if (mqtt_control[1] === "window_mode_control" || mqtt_control[1] === "heat_mode_control") {
|
||||
topic = mqtt_control[1]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (topic === "window_mode_control" && (payload === "cool" || payload === "heat" || payload === "off")) {
|
||||
window_mode = payload
|
||||
context.set("window_mode", window_mode)
|
||||
}
|
||||
|
||||
if (topic === "control" && (payload === "on" || payload === "off" || payload === "auto" || payload === "auto-predict")) {
|
||||
if (topic === "heat_mode_control" && (payload === "on" || payload === "off" || payload === "auto" || payload === "auto-predict")) {
|
||||
control_mode = payload
|
||||
context.set("control_mode", control_mode)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user