puttyman / hass-amplifi

A home assistant integration for Ubiquiti Amplifi
27 stars 16 forks source link

Amplifi hostname #6

Closed Hubszo closed 2 years ago

Hubszo commented 3 years ago

I'm having issue with the last step when entering hostname and password. I can't find in AmpliFi app any details regarding hostname. Do you mean 'Device name' under Settings > General???

townsmcp commented 3 years ago

@Hubszo try entering the IP of your Amplifi router (probably 192.168.1.1 or some such x.x.x.1)

Hubszo commented 3 years ago

Thanks for your quick reply, unfortunately IP doesn't work. And both IP and password are correct since I can access web gui.

townsmcp commented 3 years ago

@Hubszo did you try 'http://192.168.1.1' or just the ip?

Hubszo commented 3 years ago

Of course I used my IP address and not word IP :) which in my case is 172.20.0.1 image

Hubszo commented 3 years ago

and I tried both with and without http://

Hubszo commented 3 years ago

Hello again, Any suggestion on how I can get this working?

C0NTi commented 3 years ago

How are you running home assistant?

Its not on a different docker network or something where it cant reach your router's webportal?

Hubszo commented 3 years ago

Sorry for late reply. I was away for 2 weeks :) Anyway, I'm running HA in VirtualBox. VB is installed on my server running Windows 10Pro. I can just reach Amplifi webportal using either local IP the gateway or by typing amplifi.lan. In both cases I'm prompt with window where I have to pick Amplifi router (http://amplifi.lan/select-device.php) and then login screen (http://amplifi.lan/login.php) where only password is given.

Jeticus commented 2 years ago

Sorry to revive an old issue but after some troubleshooting I managed to track down the issue (atleast in my case) to HA running on a different subnet to the Amplifi. Regardless of having the appropriate network provisions in place to allow for communication between subnets, if the Amplifi is not on the same subnet as HA, the integration refuses to work.

My workaround was to use a source NAT to translate the HA device to masquerade as an IP on the Amplifi network. Not ideal but a workaround if anyone still needs to do the same.

puttyman commented 2 years ago

@Hubszo sounds like your issue is with your specific network environment rather than this add-on. Closing it.