kpsuperplane / homebridge-wiz-lan

Control Wiz lights over LAN
Apache License 2.0
115 stars 37 forks source link

Issue when Light Ip changes #75

Closed beyer-martin closed 1 year ago

beyer-martin commented 2 years ago

Hi! I have been using the plugin and found an issue that I believe is related to the lightbulb ip. Sometimes after a while or after turning on/off power the lights change IP address, and from debugging the plugin I found that the IP is not updated. I tried to scan the code to investigate where this change should live but I've never worked with Homebridge. I can take the issue if someone can provide guidance. Thanks

aralam commented 2 years ago

It is a good practice to have your home router issue fixed IP address for IoT devices (like smart bulbs). Dynamic IP address breaks whole bunch of configs and make troubleshooting challenging. This can be achieved by using a feature called DHCP reservation. Google your router’s make/model on how to perform this config.