PeteLawrence / homebridge-people

206 stars 52 forks source link

IP vs device name? #23

Open tomto147 opened 8 years ago

tomto147 commented 8 years ago

Strange... I have changed IP to my iPhone's name (because it was changing IPs), and now it no longer recognizes the device. I have spaces in the device name (like "iPhone 7 TT"). Is it allowed? I have also tried a name without spaces like "iP7" and it does not work. Putting new IPs (from DHCP) worked and the devices are discoverable again. But as soon as DHCP puts them on different IP it will stop again. What am I doing wrong? ;-)

PeteLawrence commented 8 years ago

The homebridge-people plugin relies on 3rd party plugins to perform the pinging of devices and storing when each device was last seen, so it could be possible that one of these doesn't like having a space in the device name.

I think you'd be best of using a device name without a space in, or get your router/DHCP server to always give your phone the same device.