Closed springstan closed 4 years ago
That's weird because you should get a ServiceError/KeyError in case the service is not available. Are you sure that the guest network is up and running? Actually I have no access to my reference hardware – may be at the weekend.
Yeah I am pretty sure since I can detect it while scanning for nearby networks. Oh okay, thanks for investigating this issue :)
I'm suppose the box reports some error, because neither a ServiceError nor an ActionError gets raised but an empty dict returns. May be the upcoming 1.0 version will report the failure in full detail, as the parser has been rewritten and error handling is vastly enhanced.
During some debugging, @springstan and @AaronDavidSchneider found out that it's possible to set the state of the guest wifi on the affected setup:
c.call_action('WLANConfiguration:3', 'SetEnable', NewEnable=1)
So setting the state works for him, but calling the GetInfo
action doesn't work as expected.
Just for the record 😊
@kbr just restarted my router and that solved my problem 🙈
@springstan thanks for the info!
@kbr of course!
I am using a custom component for Home Assistant called ha-fritzbox-tools. Unfortunately, it cannot get the state of my guest wifi. See this issue for more information.
Ticked the necessary checkboxes in
Access Settings in the Home Network
Occurred after upgrading to version:0.8.4
Surprisingly this has worked before with0.6.5
, however I cannot seem to replicate it anymore. Requests version:2.22.0
Fritzbox model: FritzBox 7560After entering this:
the last line returns an empty dict
{}
which is needed for getting the guest wifi state.However, the connection is established successfully, since this:
returns
1.WANPPPConnection.1
Hope you guys can help me out :)