diff --git a/README.md b/README.md index acf3ed4..e89fb3d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # node-red-contrib-lutron Node for Lutron devices on node-red + +# Configuraiton +During configuration of the lutron node you have to provide the ip address of the Lutron Caseta Pro HUB. This module does not work with the basic version of the HUB as telnet connection is diabled on it. + +The 2nd part of the configuration is to enter the switch ID and map it to a name. +I did not find any clean way to query the device ID to name mapping form the HUB so it's a manual step. + +To identify the device ID to name mapping you can create a status node with DEVICE set to "ALL", connect the output of this node to a debug node and it will show you all the devices as they change status. +After this you can flip any of the device on this hub and it will show you ID for the device. + diff --git a/lutron-config.html b/lutron-config.html index 4ec7990..1714756 100644 --- a/lutron-config.html +++ b/lutron-config.html @@ -11,8 +11,7 @@ value: "" }, deviceMap: { - "Living Room Light": 34, - "Master Bedroom Light": 32 + "ALL": 0, }, }, label: function () { diff --git a/package.json b/package.json index b0d97cd..3976309 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-lutron", - "version": "1.0.0", + "version": "1.0.1", "description": "A node for communicating with Lutron Caseta Pro Hub", "main": "index.js", "scripts": { @@ -14,6 +14,11 @@ "lutron-control": "lutron-control.js" } }, + "repository": { + "type": "git", + "url": "git@github.com:sushilks/node-red-contrib-lutron.git" + + }, "keywords": [ "lutron", "caseta", @@ -23,10 +28,16 @@ "node-red", "node" ], - "author": "Sushil Singh (http://sushilks.blogspot.com)", - "license": "ISC", + "author": "Sushil Singh ", + "license": "Apache 2.0", "dependencies": { "events": "^3.0.0", "telnet-client": "^0.16.1" - } + }, + "maintainers": [ + { + "name": "Sushil Singh", + "email": "sushilks@gmail.com" + } + ] }