daily pastebin goal
19%
SHARE
TWEET

Node-red deconz

dreuf Feb 19th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"6614eecd.0e9d2","type":"tab","label":"Deconz","disabled":false,"info":""},{"id":"48533a83.a2d044","type":"inject","z":"6614eecd.0e9d2","name":"","topic":"","payload":"","payloadType":"date","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":80,"wires":[["2c44dc40.e83d94"]]},{"id":"2c44dc40.e83d94","type":"http request","z":"6614eecd.0e9d2","name":"","method":"GET","ret":"txt","url":"http://localhost/api/EBCB268AAD/lights/1","tls":"","x":350,"y":80,"wires":[["9e7519e6.a7ba08"]]},{"id":"9e7519e6.a7ba08","type":"json","z":"6614eecd.0e9d2","name":"","property":"payload","action":"","pretty":false,"x":110,"y":160,"wires":[["e032d764.9ca148"]]},{"id":"fe6dcf79.33114","type":"ui_slider","z":"6614eecd.0e9d2","name":"Taklys Bysse","label":"Taklys Bysse","group":"c3c5b844.061f38","order":1,"width":0,"height":0,"passthru":false,"topic":"","min":0,"max":"255","step":1,"x":690,"y":140,"wires":[["be8d5fba.1d872"]]},{"id":"ecb6f715.18e718","type":"http request","z":"6614eecd.0e9d2","name":"","method":"PUT","ret":"txt","url":"http://localhost/api/EBCB268AAD/lights/1/state","tls":"","x":1250,"y":120,"wires":[[]]},{"id":"e9de9da4.28673","type":"function","z":"6614eecd.0e9d2","name":"Lys på","func":"msg.payload = { \"on\": true }\nreturn msg;","outputs":1,"noerr":0,"x":1070,"y":140,"wires":[["ecb6f715.18e718"]]},{"id":"be8d5fba.1d872","type":"switch","z":"6614eecd.0e9d2","name":"AV eller PÅ","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"5","vt":"str"},{"t":"gte","v":"6","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":870,"y":140,"wires":[["8e7a9b27.08fd18"],["e9de9da4.28673","505e3ca9.ae3194"]]},{"id":"8e7a9b27.08fd18","type":"function","z":"6614eecd.0e9d2","name":"Lys av","func":"msg.payload = { \"on\": false }\nreturn msg;","outputs":1,"noerr":0,"x":1070,"y":80,"wires":[["ecb6f715.18e718"]]},{"id":"505e3ca9.ae3194","type":"function","z":"6614eecd.0e9d2","name":"Set styrke","func":"var dim = msg.payload\nmsg.payload = { \"bri\": dim }\nreturn msg;","outputs":1,"noerr":0,"x":1080,"y":200,"wires":[["ecb6f715.18e718"]]},{"id":"4fa9cca2.263ec4","type":"change","z":"6614eecd.0e9d2","name":"Conv to 0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":120,"wires":[["fe6dcf79.33114"]]},{"id":"e032d764.9ca148","type":"switch","z":"6614eecd.0e9d2","name":"Lights on or off","property":"payload.state.on","propertyType":"msg","rules":[{"t":"false"},{"t":"true"}],"checkall":"true","repair":false,"outputs":2,"x":280,"y":160,"wires":[["4fa9cca2.263ec4"],["aa2fb3d6.8f412"]]},{"id":"aa2fb3d6.8f412","type":"function","z":"6614eecd.0e9d2","name":"Forward bri","func":"msg.payload = msg.payload.state.bri;\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":180,"wires":[["fe6dcf79.33114"]]},{"id":"c3c5b844.061f38","type":"ui_group","z":"","name":"Taklys","tab":"53b06f7a.81fd6","order":1,"disp":true,"width":"6","collapse":false},{"id":"53b06f7a.81fd6","type":"ui_tab","z":"","name":"SY Samson","icon":"dashboard","order":2}]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top