iot lights sharda

this flow will control lights in 221

[{"id":"7ca4ca7c.e3ba44","type":"ui_switch","z":"9368280.9047ed8","name":"","label":"UPS room light","group":"24115e9b.0031d2","order":3,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"LA2","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","x":220,"y":40,"wires":[["4ffd975b.6401e8"]]},{"id":"781cfe7.6a5fe","type":"mqtt out","z":"9368280.9047ed8","name":"","topic":"/eee/auto/","qos":"","retain":"","broker":"42042145.85324","x":640,"y":40,"wires":[]},{"id":"e4372537.454098","type":"mqtt in","z":"9368280.9047ed8","name":"","topic":"/eee/auto/connect/","qos":"2","broker":"42042145.85324","x":310,"y":140,"wires":[["8f22687a.51a2f8","c5b2e0aa.02721"]]},{"id":"2601bbf7.536c54","type":"ui_text","z":"9368280.9047ed8","group":"24115e9b.0031d2","order":1,"width":0,"height":0,"name":"","label":"STATUS \t","format":"{{msg.payload}}","layout":"row-spread","x":660,"y":220,"wires":[]},{"id":"9ec8c02e.a04fc","type":"ui_template","z":"9368280.9047ed8","group":"24115e9b.0031d2","name":"","order":2,"width":0,"height":0,"format":"<!DOCTYPE html>\n<html>\n<head>\n<style>\nbody  {\n    background-image: url(\"https://i.imgur.com/kU7H0Oi.jpg\");\n    background-color: #cccccc;\n}\n</style>\n</head>\n\n</html>\n","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":500,"y":340,"wires":[[]]},{"id":"8f22687a.51a2f8","type":"debug","z":"9368280.9047ed8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":650,"y":140,"wires":[]},{"id":"4ffd975b.6401e8","type":"delay","z":"9368280.9047ed8","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":460,"y":40,"wires":[["781cfe7.6a5fe","8f22687a.51a2f8"]]},{"id":"c5b2e0aa.02721","type":"function","z":"9368280.9047ed8","name":"","func":"msg.payload=\"connected!\"\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":260,"wires":[["2601bbf7.536c54"]]},{"id":"24115e9b.0031d2","type":"ui_group","z":"","name":"Connections","tab":"ffb830fd.aa549","disp":true,"width":"6","collapse":false},{"id":"42042145.85324","type":"mqtt-broker","z":"","name":"broker1","broker":"iot.eclipse.org","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"ffb830fd.aa549","type":"ui_tab","z":"","name":"IOT DASHBOARD","icon":"dashboard"}]

Flow Info

Created 7 years, 9 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x1)
  • delay (x1)
  • function (x1)
  • mqtt in (x1)
  • mqtt out (x1)
  • mqtt-broker (x1)
Other
  • ui_group (x1)
  • ui_switch (x1)
  • ui_tab (x1)
  • ui_template (x1)
  • ui_text (x1)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option