Netgear device tracker setup errors

Hi guys, hope someone can help me. I ahve a Netgear D6400 router that isn’t automatically configured by HASS, but when I try to configure it manually using the following:

  - platform: owntracks

  - platform: netgear
    host: 192.168.0.1
    username: redacted
    password: red@cted
    interval_seconds: 10
    consider_home: 300
    track_new_devices: yes

it gives the following errors:

16-10-15 19:17:22 homeassistant.bootstrap: component automation failed to initialize
16-10-15 19:17:43 netdisco.ssdp: Error fetching description at http://192.168.0.1:8200/rootDesc.xml
16-10-15 19:17:44 netdisco.ssdp: Found malformed XML at http://192.168.0.2:49153/description9.xml: 
16-10-15 19:17:44 netdisco.ssdp: Found malformed XML at http://192.168.0.2:49153/description8.xml: 
16-10-15 19:17:44 netdisco.ssdp: Found malformed XML at http://192.168.0.2:49153/description7.xml: 
16-10-15 19:17:45 pynetgear: Error talking to API
Traceback (most recent call last):
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/models.py", line 346, in prepare_url
    scheme, auth, host, port, path, query, fragment = parse_url(url)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/packages/urllib3/util/url.py", line 189, in parse_url
    raise LocationParseError(url)
requests.packages.urllib3.exceptions.LocationParseError: Failed to parse: None:None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hass/.homeassistant/deps/pynetgear/__init__.py", line 113, in _make_request
    self.soap_url, headers=headers, data=message, timeout=10)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/api.py", line 110, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/sessions.py", line 461, in request
    prep = self.prepare_request(req)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/sessions.py", line 394, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/models.py", line 294, in prepare
    self.prepare_url(url, params)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/requests/models.py", line 348, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: None:None
16-10-15 19:17:45 homeassistant.components.device_tracker.netgear: Failed to Login
16-10-15 19:17:45 homeassistant.components.device_tracker: Error setting up platform netgear

Any ideas on how to fix it would be appreciated

If you open a browser and go to 192.168.0.1 can you access your router. 192.168.1.1 is the other default for netgear routers.

Also be sure your username and password are correct. To check that they are entered correctly try copy and pasting from your config file into the login box. I can’t remember if netgears are case sensitive, but something to check.

I have the same problem too. It seems to work even though I get the errors. My password and username are correct…

I should have mentioned that too, I get errors from in the log mine even though its working perfectly.

there is a bug report for this on the github page:
https://github.com/home-assistant/home-assistant/issues/4318

1 Like