roblandry / netgear-enhanced-integration

14 stars 9 forks source link

Potential Solution for V2 Login for RAX15 #4

Open Seperis opened 3 years ago

Seperis commented 3 years ago

The Netgear Nighthawk RAX15 using port 80 will work if you force a v2 login.

For sensors and switches, I added the following: 1.) add these variables to def_setup_platform: url = None force_login_v2=True 2.) Under def _init- in self._api = NetgearEnhanced.. Added arg[5] and arg[6]

For device tracker, 1.) same variables under def get_scanner 2.) to Class NetgearDeviceScanner, add variables url and force_login_v2 to self._api

I hope that helps someone if they're using an RAX that won't connect. RAX40 and RAX80 both work without any changes to the code though none get attached devices and weird things happen on the RAX40 I assume because it's in AP mode.