Netgear Enhanced (sensors and switches for router controls)

Yep! Got the latest and see that

I get so many errors in my logs from this still

Hey. Both the speed test sensor and switch aren’t working but everything else is. Any ideas?

Do a debug to see what is creating your errors.

Log Details (ERROR)
Fri Jan 10 2020 05:42:48 GMT+0000 (Greenwich Mean Time)
Update for sensor.r7000p_gateway_bytes_sent fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 552, in write_bytes
    await self.body.write(writer)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/payload.py", line 231, in write
    await writer.write(self._value)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 101, in write
    self._write(chunk)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 67, in _write
    raise ConnectionResetError('Cannot write to closing transport')
ConnectionResetError: Cannot write to closing transport

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 281, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/upnp/sensor.py", line 146, in async_update
    self._state = await self._device.async_get_total_bytes_sent()
  File "/usr/src/homeassistant/homeassistant/components/upnp/device.py", line 149, in async_get_total_bytes_sent
    return await self._igd_device.async_get_total_bytes_sent()
  File "/usr/local/lib/python3.7/site-packages/async_upnp_client/profiles/igd.py", line 99, in async_get_total_bytes_sent
    result = await action.async_call()
  File "/usr/local/lib/python3.7/site-packages/async_upnp_client/client.py", line 509, in async_call
    await self.service.requester.async_http_request('POST', url, headers, body)
  File "/usr/local/lib/python3.7/site-packages/async_upnp_client/client.py", line 70, in async_http_request
    body_type=body_type)
  File "/usr/local/lib/python3.7/site-packages/async_upnp_client/aiohttp.py", line 103, in async_do_http_request
    async with self._session.request(method, url, headers=headers, data=body) as response:
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 1012, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 504, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 847, in start
    message, payload = await self._protocol.read()  # type: ignore  # noqa
  File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 591, in read
    await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno None] Can not write request body for http://192.168.0.1:5000/Public_UPNP_C2

Seems like the private GitLab server is down.

Can someone who has a local copy of the repo push it to GitHub?

Give me a few and i will get it back online. Having server issues lately.

Edit: Server back online.

Once you have what you need, let me know, because i think i may be doing a full rebuild this weekend.

Unfortunately, I still can’t reach it :frowning:

Yes the server is down :pensive:

Yes, this is the issue ive been facing lately. I am reinstalling linux today. Rebooting the server in a moment. It will once again be available, but for a short period until i start rebuilding it. If you are unable to access it in this window it will be later today that it will be available again. I will update this post for when its temporarily and permanently back online. Sorry for the inconvenience, i have not idea why, but this has become a daily offline issue that i havent been able to correct.

Edit: Back online for a little while, while i prepare for reinstallation.
Edit: Ok, time is up. Server is going down.
Edit: Server restored. Shouldnt have any more issues.

2 Likes

I had this running just fine until today when I restarted my Hassio instance and most of the sensor and switches became unavailable. I did not change anything related to this component and I am not sure why it just stopped working.

Most likely a router reboot is in order. I also modified asuswrt for more sensors, and it too stops working at some random period of time. Rebooting the router brings it back.

Hey, where should we report bugs/issues if we find them?

hey, server is down i think too?

@Jamie_Pryer Nope, its up. Also bugs can be reported here. I try to correct when i have time.

this all sounds great but the link at the top of the page seems to be broken…darn…I’ve got a RAX80 and am excited to give it a try.

Hi, I’ve got a Netgear Orbi RBR50 with two satellites, but Netgear_Enhanced doesn’t work, I haven’t any sensor. I’m on RPI 4 with HA 0.107.4, can you help me?

Ciao

Stefano

Registry Error:

Logger: pynetgear_enhanced
Source: /usr/local/lib/python3.7/site-packages/pynetgear_enhanced/init.py:143
First occurred: 23:17:55 (10 occurrences)
Last logged: 23:17:56

Connection error: HTTPConnectionPool(host=‘192.168.1.1’, port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8f6e5cd0>: Failed to establish a new connection: [Errno 111] Connection refused’))
Connection error: HTTPConnectionPool(host=‘192.168.1.1’, port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8f6ba150>: Failed to establish a new connection: [Errno 111] Connection refused’))
Connection error: HTTPConnectionPool(host=‘192.168.1.1’, port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8f5c46d0>: Failed to establish a new connection: [Errno 111] Connection refused’))
Connection error: HTTPConnectionPool(host=‘192.168.1.1’, port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8f40dd10>: Failed to establish a new connection: [Errno 111] Connection refused’))
Connection error: HTTPConnectionPool(host=‘192.168.1.1’, port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8f58fc90>: Failed to establish a new connection: [Errno 111] Connection refused’))
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/urllib3/connection.py”, line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File “/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py”, line 84, in create_connection
raise err
File “/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py”, line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 672, in urlopen
chunked=chunked,
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/local/lib/python3.7/http/client.py”, line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/local/lib/python3.7/http/client.py”, line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/local/lib/python3.7/http/client.py”, line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/local/lib/python3.7/http/client.py”, line 1026, in _send_output
self.send(msg)
File “/usr/local/lib/python3.7/http/client.py”, line 966, in send
self.connect()
File “/usr/local/lib/python3.7/site-packages/urllib3/connection.py”, line 184, in connect
conn = self._new_conn()
File “/usr/local/lib/python3.7/site-packages/urllib3/connection.py”, line 169, in _new_conn
self, “Failed to establish a new connection: %s” % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8f725f50>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/requests/adapters.py”, line 449, in send
timeout=timeout
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File “/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py”, line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘192.168.1.1’, port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8f725f50>: Failed to establish a new connection: [Errno 111] Connection refused’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/pynetgear_enhanced/init.py”, line 103, in _make_request
data=message, timeout=30, verify=False)
File “/usr/local/lib/python3.7/site-packages/requests/api.py”, line 119, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/api.py”, line 61, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 530, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 643, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘192.168.1.1’, port=5000): Max retries exceeded with url: /soap/server_sa/ (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8f725f50>: Failed to establish a new connection: [Errno 111] Connection refused’))

Link is not available. Where can I download this component? I need to turn my guest network on and off on my Netgear WNR3500v2. Thank you!

I’m also trying to get hold of this. Links don’t work.

Server is up, just checked. I will move to github shortly to alleviate any other issues connecting to the repo.