tim-hellhake / tradfri-adapter

Mozilla Public License 2.0
2 stars 3 forks source link

Cannot find Tradfri bridge #9

Closed davvore33 closed 4 years ago

davvore33 commented 4 years ago

Hi, your plugin looks very interesting, since my firewall has some specific rules probably adapter is not able to find my bridge, so I'd like to have a way to manually insert the IP of my bridge

tim-hellhake commented 4 years ago

I'm sorry to hear that. If it's possible, I will add it as an option, but I need to check first if the underlying library supports it.

tim-hellhake commented 4 years ago

Ok, looks fine. I'm not sure if I'm able to fix it today, though. Would you mind still adding the logs after restarting the adapter? You can see them on /settings/developer/. I wonder if your device is not discovered at all, or the name resolution doesn't work.

davvore33 commented 4 years ago

wow thanks for your fast action, I'll try it ASAP

tim-hellhake commented 4 years ago

The new update does not yet contain the option to set the IP manually. Instead, I changed the way the adapter connects to the gateway. It now tries all of the advertised addresses one by one unit it can connect to the gateway. If the problem in your case was the mDNS resolution, this should solve your issue.

tim-hellhake commented 4 years ago

The next update should contain an option in the settings to add gateway by IP/hostname.

davvore33 commented 4 years ago

I tried to insert the ip manually, it's perfect, thanks!