Intensity Philips Hue
This allows users to set the intensity and color of Philips Hue lamps quickly and easily.
In the case of addition of luminance sensors, it allows the automatic control.
[{"id":"c1466b39.ce5f3","type":"Hue Pull","z":"8dc7773.58cca08","deviceid":"2","serverid":"001788fffe16dd0a","name":"Lamp1","x":896.5,"y":385.5,"wires":[["ef1b52ec.f32738"],[]]},{"id":"ef1b52ec.f32738","type":"debug","z":"8dc7773.58cca08","name":"","active":true,"console":false,"complete":"payload","x":1056,"y":302.5,"wires":[]},{"id":"d47b4bb4.6f7fa8","type":"function","z":"8dc7773.58cca08","name":"on","func":"msg.payload={\n\t\"on\":[true],\n\t\"bri\":[255],\n\t\"rgb\":[255,255,255]\n};\nreturn msg;","outputs":1,"noerr":0,"x":409,"y":361.5,"wires":[["9ac98c2e.a37cb"]]},{"id":"1886916c.dfd14f","type":"function","z":"8dc7773.58cca08","name":"off","func":"msg.payload={\n\t\"on\":[false],\n\n};\nreturn msg;","outputs":1,"noerr":0,"x":409,"y":415.5,"wires":[["9ac98c2e.a37cb"]]},{"id":"9ac98c2e.a37cb","type":"Hue Set","z":"8dc7773.58cca08","deviceid":"2","serverid":"001788fffe16dd0a","name":"Lamp1","x":688,"y":382.75,"wires":[["c1466b39.ce5f3"],[]]},{"id":"f575dc9c.20bfe8","type":"ui_button","z":"8dc7773.58cca08","name":"ON","group":"82bfa00d.f6e7b","order":1,"width":"0","height":"0","label":"ON","color":"","bgcolor":"green","icon":"","payload":"1","payloadType":"str","topic":"","x":172,"y":360,"wires":[["d47b4bb4.6f7fa8"]]},{"id":"756b7166.3c6f6","type":"ui_button","z":"8dc7773.58cca08","name":"OFF","group":"82bfa00d.f6e7b","order":2,"width":"0","height":"0","label":"OFF","color":"","bgcolor":"red","icon":"","payload":"0","payloadType":"str","topic":"","x":177,"y":414,"wires":[["1886916c.dfd14f"]]},{"id":"d4e5bd59.c156a","type":"ui_slider","z":"8dc7773.58cca08","name":"Brightness","label":"Intensidade","group":"2d12474c.4621f","order":3,"width":"0","height":"0","passthru":true,"topic":"","min":0,"max":"255","step":1,"x":189.5,"y":302.5,"wires":[["1ff12168.9d874f"]]},{"id":"1ff12168.9d874f","type":"function","z":"8dc7773.58cca08","name":"set_intensity","func":"var test= msg.payload;\n\nmsg.payload={\n\t\"bri\":[test]\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":409,"y":302,"wires":[["9ac98c2e.a37cb"]]},{"id":"1c04f89d.e51b8f","type":"ui_colour_picker","z":"8dc7773.58cca08","name":"","label":"Color","group":"2d12474c.4621f","format":"rgb","outformat":"string","showSwatch":true,"showPicker":false,"showValue":false,"showAlpha":true,"order":4,"width":0,"height":0,"passthru":true,"topic":"","x":171,"y":243,"wires":[["d16fe22e.5a455"]]},{"id":"d16fe22e.5a455","type":"function","z":"8dc7773.58cca08","name":"set_color","func":"var cor= msg.payload;\n\nmsg.payload={\n\t\"rgb\":[cor]\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":405.5,"y":244.5,"wires":[["9ac98c2e.a37cb"]]},{"id":"82bfa00d.f6e7b","type":"ui_group","z":"baa229bc.af9318","name":"Iluminação Mesa 2","tab":"3fc04bb1.bd1d0c","order":3,"disp":true,"width":"6"},{"id":"2d12474c.4621f","type":"ui_group","z":"","name":"Iluminação Mesa 1","tab":"3fc04bb1.bd1d0c","order":2,"disp":true,"width":"6"},{"id":"3fc04bb1.bd1d0c","type":"ui_tab","z":"","name":"Iluminação Sala","icon":"dashboard","order":1}]