node-red-contrib-qsys
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -9,2 +9,3 @@ module.exports = function (RED) { | ||
let controlId = config.controlId; | ||
let controlType = parseInt(config.controlType); | ||
let changeGroup = parseInt(config.changeGroup); | ||
@@ -61,3 +62,15 @@ | ||
msg.topic = topic || msg.topic || controlId; | ||
msg.payload = data.Value; | ||
switch(controlType) { | ||
case 0: | ||
msg.payload = data.Value; | ||
break; | ||
case 1: | ||
msg.payload = data.Position; | ||
break; | ||
case 2: | ||
msg.payload = data.String; | ||
break; | ||
} | ||
this.send(msg); | ||
@@ -73,2 +86,3 @@ } | ||
lastMsg = msg; | ||
this.server.sendToCore({ | ||
@@ -75,0 +89,0 @@ 'jsonrpc': '2.0', |
{ | ||
"name": "node-red-contrib-qsys", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A collection of nodes for third party control of Q-Sys systems", | ||
@@ -5,0 +5,0 @@ "main": "qsys-core.js", |
@@ -18,6 +18,7 @@ [](https://nodered.org) | ||
| Version | Description | | ||
|---------|-------------------------------| | ||
| 1.0.2 | Updated dependencies | | ||
| 1.0.1 | Maintenance and documentation | | ||
| 1.0.0 | initial release | | ||
|---------|-------------------------------------------------| | ||
| 1.0.3 | Added `controlType` to **qsys-controlSet** node | | ||
| 1.0.2 | Updated dependencies | | ||
| 1.0.1 | Maintenance and documentation | | ||
| 1.0.0 | initial release | | ||
@@ -24,0 +25,0 @@ --- |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
563424
691
79