konnected-io / homebridge-konnected

A Homebridge plugin for Konnected Alarm Panel devices
MIT License
35 stars 12 forks source link

HomeBridge `listenerPort` is re-assigned after reboot #6

Open heythisisnate opened 1 year ago

heythisisnate commented 1 year ago

If a listenerPort is not specified in the config.json, HomeBridge randomly assigns a listenerPort. This is fine, except this port number is not persisted anywhere and doesn't survive reboots. The impact is that if a Konnected device is provisioned with a randomly assigned listenerPort, then after reboot the device would not be able to contact HomeBridge at the new port until it is re-provisioned (it's unclear if this happens automatically).

Workaround: set listenerPort to any available HTTP port number in the advanced section of the config.json. See README for example.

to Fix: persist the listenerPort in the config so that it survives Homebridge reboots.