python-sagemcom-api icon indicating copy to clipboard operation
python-sagemcom-api copied to clipboard

Turn on/off Wifi

Open tik9 opened this issue 1 year ago • 1 comments

Is it possible to turn on/off the wifi 2.5 or 5 ghz and get the current value if turned on or off?

The fritzbox python api has it all:

With the mentioned api, code is: FritzConnection(password=os.getenv('fb'), user='fritz').call_action('WLANConfiguration1', 'SetEnable', <true/false>

'WLANConfiguration1' is Wifi 2.5 Ghz.

Trying client.get_value_by_xpath("Device/UserInterface") in your code, I did not find wifi in the output.

tik9 avatar Apr 24 '24 20:04 tik9

This is a hard one for me to debug without having access to the device. By any chance, can you execute this in the router webui? Via the browser, you can capture the XHR requests and see which actions are being executed via the Sagemcom API.

iMicknl avatar Jun 02 '24 20:06 iMicknl

@tik9 please let me know if this is still relevant, and we can reopen.

iMicknl avatar Aug 09 '24 19:08 iMicknl