COntrol Govee Lights via LAN API

Example Flow to control any of the Govee LED lights that are supported for the LAN API (https://app-h5.govee.com/user-manual/wlan-guide#:~:text=Supported%20Product%20Models%20(continually%20updated))

[{"id":"c3aeee3fa0233a1b","type":"tab","label":"RGB-Light","disabled":false,"info":"","env":[]},{"id":"d185489e7ed220eb","type":"udp out","z":"c3aeee3fa0233a1b","name":"","addr":"192.168.X.X","iface":"","port":"4003","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":570,"y":40,"wires":[]},{"id":"e94afe18ed021406","type":"template","z":"c3aeee3fa0233a1b","name":"ON/OFF","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"msg\":{\"cmd\":\"turn\",\"data\":{\"value\":{{payload}}}}}","output":"str","x":340,"y":80,"wires":[["d185489e7ed220eb"]]},{"id":"84e192c7d6a40590","type":"ui_switch","z":"c3aeee3fa0233a1b","name":"","label":"ON/OFF","tooltip":"","group":"54b657355a32324a","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"1","onvalueType":"str","onicon":"","oncolor":"","offvalue":"0","offvalueType":"str","officon":"","offcolor":"","animate":false,"className":"","x":160,"y":80,"wires":[["e94afe18ed021406"]]},{"id":"a2b2b08a4790859a","type":"ui_colour_picker","z":"c3aeee3fa0233a1b","name":"","label":"Color","group":"54b657355a32324a","format":"rgb","outformat":"object","showSwatch":true,"showPicker":false,"showValue":false,"showHue":false,"showAlpha":false,"showLightness":true,"square":"false","dynOutput":"true","order":1,"width":0,"height":0,"passthru":true,"topic":"topic","topicType":"msg","className":"","x":170,"y":120,"wires":[["b252d875f4d91639"]]},{"id":"b252d875f4d91639","type":"template","z":"c3aeee3fa0233a1b","name":"Color","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"msg\":{\"cmd\":\"colorwc\",\"data\":{\"color\":{\"r\":{{payload.r}},\"g\":{{payload.g}},\"b\":{{payload.b}}},\"colorTemInKelvin\":0}}}","output":"str","x":310,"y":120,"wires":[["d185489e7ed220eb"]]},{"id":"6404d9671c0578b5","type":"ui_slider","z":"c3aeee3fa0233a1b","name":"","label":"Brightness","tooltip":"","group":"54b657355a32324a","order":2,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":"1","max":"100","step":1,"className":"","x":180,"y":160,"wires":[["00bbe4990258a647"]]},{"id":"00bbe4990258a647","type":"template","z":"c3aeee3fa0233a1b","name":"Brightness (1-100)","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n    \"msg\":\n            {\n                \"cmd\":\"brightness\",\n                \"data\":\n                {\n                    \"value\":{{payload}}\n                }\n            }\n}","output":"str","x":350,"y":160,"wires":[["d185489e7ed220eb"]]},{"id":"1d13e6399e93e63b","type":"ui_slider","z":"c3aeee3fa0233a1b","name":"","label":"Color Temperature","tooltip":"","group":"54b657355a32324a","order":1,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":"2000","max":"9000","step":"100","className":"","x":200,"y":200,"wires":[["8dd0656dde3497b1"]]},{"id":"8dd0656dde3497b1","type":"template","z":"c3aeee3fa0233a1b","name":"Color Temperature","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"msg\":\n    {   \"cmd\":\"colorwc\",\n        \"data\":\n                {   \n                    \"color\":{\"r\":0,\"g\":0,\"b\":0},\n                    \"colorTemInKelvin\":{{payload}}\n                }\n    }\n}","output":"str","x":380,"y":200,"wires":[["d185489e7ed220eb"]]},{"id":"54b657355a32324a","type":"ui_group","name":"Standard","tab":"2a8fe4ccd39532f8","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"2a8fe4ccd39532f8","type":"ui_tab","name":"RGB-Light","icon":"dashboard","disabled":false,"hidden":false}]

Flow Info

Created 1 year, 10 months ago
Rating:

Actions

Rate:

Node Types

Core
  • template (x4)
  • udp out (x1)
Other

Tags

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