Closed Ludy87 closed 1 year ago
Hey there @mammuth, @aarondavidschneider, @chemelli74, @mib1185, mind taking a look at this issue as it has been labeled with an integration (fritz
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
fritz documentation fritz source (message by IssueLinks)
Hi @Ludy87
in which circumstances does this error occur?
And which FritzOS version is your box running on?
Also, please enable debug logging, restart HA and provide the home-assistant.log after this error appears again.
To do so add the following to your configuration.yaml
:
logger:
default: info
logs:
homeassistant.components.fritz: debug
Further if possible please download and provide the diagnostics data for this integration.
Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.
FRITZ!OS:06.55
it already occurs when setting up, so there is no diagnostic protocol
home-assistant_2023-07-31T20-08-07.250Z.log
raise disable: config_entry-fritz-e0628612d2cb08d0ee4fb91329b5e4ae.json.txt
another error occurs, which must be dealt with in the Lib. https://github.com/kbr/fritzconnection/pull/191
I guess FritzOS 6.55 is to old and does not support the X_AVM-DE_GetHostListPath
action via tr64, but the fritz
integrations has been reworked to rely on this GetHostListPath to obtain the connected client devices (will be delivered with 2023.8).
This means, we need to bring back the former/old mechanic as fallback when the FritzBox does not support the X_AVM-DE_GetHostListPath
action.
Hopefully I'll get it managed this week to re-implement the old mechanic as fallback
Is there also the possibility that not only the guest WiFi is created as a QR code, but also the "normal" WiFi?
Is there also the possibility that not only the guest WiFi is created as a QR code, but also the "normal" WiFi?
it is on my list, but did not find the time, yet. maybe in the next weeks/months 🤞
@Ludy87 just one further question - which permissions does the used user have? are the app permissions granted to this user?
There is no app permission.
Hi, I confirm I have the same issue with FRITZ!OS 7.56. I confirm also the removing exceptions on line 390-392 solves the problem
Hi @ferdyvi which FritzBox/Repeater model do you use?
Hi @ferdyvi which FritzBox/Repeater model do you use?
I have modem router fritz box 7590
@ferdyvi i think you encounter a different issue. please open an new issue report and provide as much information as possible. Also please already add debug information as described in https://github.com/home-assistant/core/issues/97543#issuecomment-1659023634
Why do you think it is a different issue? I have the same error "Error refreshing hosts info", and the workaround is the same. This bug is present in 2023.8.0
because you have a quite new 7590 running on FRITZ!OS 7.56 ... the issue here is based on an older FritzOS version.
Further the Error refreshing hosts info
is the resultung error, but the causing error here is:
homeassistant.components.fritz.fritzconnection.src.fritzconnection.core.exceptions.FritzActionError: UPnPError:
errorCode: 401
errorDescription: Invalid Action
Hi @Ludy87 would be great if you could test the linked PR. thx 👍
Thanks for your trouble, according to my assessment and observation, the error has been fixed.
Hi, I still get the error "Error refreshing hosts info" and again the solution is to delete the raise exception as indicated by the first user
@ferdyvi as I wrote before, please open an own issue report and provide as much information and debug logs as possible
Ok I will open a separate issue, even if the solution was already present and here
Ok I will open a separate issue, even if the solution was already present and here
The one provided, is not a solution but a workaround ;-)
Simone
The problem
What version of Home Assistant Core has the issue?
core-2023.9.0.dev0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
fritz
Link to integration documentation on our website
https://www.home-assistant.io/integrations/fritz
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
https://github.com/home-assistant/core/blob/121fc7778d2573e833d36ac2a331f5f12a24223c/homeassistant/components/fritz/common.py#L390-L392
the problem is the exception that is thrown here. If I comment out this part, then the integration runs "without" errors.
I don't (yet) understand why UPnPError occurs as an error, it may be because the Fritzbox is only used as a layer 2 router?!
If further information is needed, please let me know.