I want to Change the Type of Connection with FritzConnection in Python. What is the command to change the connection type and where must the login data for the static IP be entered? Enclosed is a photo where you can see the difference when I read out the information when I am logged in once normally and once via the static IP.
fc.call_action('WANPPPConnection','GetInfo')
On the second Picture is the GUI from the FritzBox what i want to change with Python.
Thanks for help.
I tried
fc.call_action('WANPPPConnection','SetForwardingEntryEnable',NewEnable = 'False')
and
fc.call_action('WANPPPConnection','AddPortMapping',Enabled=0)
fc.call_action('WANPPPConnection','AddPortMapping',Enabled="False")
fc.call_action('WANPPPConnection','AddPortMapping',NewEnabled="False")
fc.call_action('WANPPPConnection','AddPortMapping',NewEnabled=0)
fc.call_action('WANPPPConnection','AddPortMapping',NewEnabled='0')
fc.call_action('WANPPPConnection','AddPortMapping',NewEnabled='FALSE')
fc.call_action('WANPPPConnection','AddPortMapping',Enabled={0})
I always got
FritzArgumentError: UPnPError:errorCode: 402errorDescription: Invalid Args