Closed Unbeaten4350 closed 1 year ago
Hey there @hacf-fr, @quentame, @starkillerog, mind taking a look at this issue as it has been labeled with an integration (netgear
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
netgear documentation netgear source (message by IssueLinks)
@Unbeaten4350 it is getting a Unauthorized response
so it seems like the router is eather blocking the HomeAssistant IP because of too many attempts or something or the username/password is wrong.
Are you sure you are using the correct password?
Maybe try a simpler password if you are using special caracters which HomeAssistant might be struggeling with....
Did you already reboot the router?
I have a similar issue. The integration was working fine for months, but lately I noticed Failed Setup error in the integration and I have this message in the Log:
`Logger: homeassistant.components.netgear Source: components/netgear/router.py:181 Integration: NETGEAR (documentation, issues) First occurred: 21:35:32 (4 occurrences) Last logged: 21:37:53
Unexpected error fetching MR60 Devices data: 'NoneType' object has no attribute 'strip' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 242, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/netgear/init.py", line 85, in async_update_devices return await router.async_update_device_trackers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/netgear/router.py", line 193, in async_update_device_trackers ntg_devices = await self.async_get_attached_devices() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/netgear/router.py", line 181, in async_get_attached_devices return await self.hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pynetgear/router.py", line 580, in get_attached_devices decoded = node.text.strip().replace( ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'strip' `
I made no changes except updating HA I have MR60 Mesh system.
Maybe this more detailed bit helps:
AttributeError: 'NoneType' object has no attribute 'strip' 2023-08-14 22:42:17.717 DEBUG (SyncWorker_4) [pynetgear.router] Login v2, port '443', ssl, 'True' 2023-08-14 22:42:17.872 DEBUG (SyncWorker_4) [pynetgear.router] Call GetInfo 2023-08-14 22:42:17.962 DEBUG (SyncWorker_4) [homeassistant.components.netgear.router] Netgear track_devices = 'True', device mode '0' 2023-08-14 22:42:17.964 DEBUG (SyncWorker_3) [pynetgear.router] Get attached devices 2023-08-14 22:42:33.511 ERROR (MainThread) [homeassistant.components.netgear] Unexpected error fetching MR60 Devices data: 'NoneType' object has no attribute 'strip' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 242, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/netgear/__init__.py", line 85, in async_update_devices return await router.async_update_device_trackers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/netgear/router.py", line 193, in async_update_device_trackers ntg_devices = await self.async_get_attached_devices() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/netgear/router.py", line 181, in async_get_attached_devices return await self.hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pynetgear/router.py", line 580, in get_attached_devices decoded = node.text.strip().replace( ^^^^^^^^^^^^^^^
@Unbeaten4350 it is getting a
Unauthorized response
so it seems like the router is eather blocking the HomeAssistant IP because of too many attempts or something or the username/password is wrong. Are you sure you are using the correct password? Maybe try a simpler password if you are using special caracters which HomeAssistant might be struggeling with....Did you already reboot the router?
Hi @starkillerOG --
Confirmed password is correct, and is only alphanumeric (no special characters). Router was rebooted on every new attempt.
The final log above shows a success near the end amongst the failures; false negatives or...?
@Unbeaten4350 yea the one success seems strange but once logged in, when sending the first request GetInfo it imediatly gives another Unauthorized response.....
@B4dC4rd your issue schould be fixed by this commit: https://github.com/MatMaul/pynetgear/commit/9e75f43ca2a972f53535bd33f8025ff0b29cc9e6
@B4dC4rd This PR will fix the issue in HomeAssistant: https://github.com/home-assistant/core/pull/100242, it is tagged to be part of HomeAssistant 2023.9.2 which will be released in 2 days.
@B4dC4rd the PR has been merged just too late to make it into HA 2023.9.2, it will be included in HA 2023.9.3. Please let me know if the errors re-occur once you are on HA 2023.9.3.
If you appreciate the Netgear integration and want to support its development, please consider sponsering the upstream library.
The problem
Netgear integration issues. Model: R7000. UPnP is enabled (UPnP integration finds the unit). Integration has previously worked. Worked on previous firmware and started having issues, so I updated firmware recently and worked again for a brief time, then began having issues again. Have confirmed login information is correct. I've deleted the integration and then added it through "+Add Integration" with no success (below pynetgear errors are from that), and I have also done it through auto-discovery with no success.
I have looked through whatever I could find in regards to the Netgear integration issues to see if anything would work for me, and nothing so far really has. (Also why I knew to go ahead and get logger information for you!)
Also, the ping sensor throws an error, I believe because of the inclusion of 'ms' in the value provided.
Netgear logger at debug level shows the following:
Pynetgear logger at debug level:
Let me know what else I can help provide on this!
What version of Home Assistant Core has the issue?
core-2023.8.1
What was the last working version of Home Assistant Core?
core-2023.8.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Netgear
Link to integration documentation on our website
https://www.home-assistant.io/integrations/netgear/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response