petslane / node-red-contrib-milight

A Node Red node to control white and color Milight LED bulbs
Apache License 2.0
0 stars 0 forks source link

Allow setting bridge address from context or input #2

Closed petslane closed 3 years ago

petslane commented 3 years ago

My Milight ibox1 sometimes changes IP and node-red was unable to send commands to it, until I ran bridge discovery to find out new ip and updated address in milight node. This is very annoying.

This PR allows setting bridge address from context or from input.

This allows me to have another flow that does periodic bridge discovery and updates bridge ip in global context and milight node uses that global context. Now, changing IPs are handled automatically.