Closed Kampi closed 3 years ago
I don't know whether this can be done or not. At least in the FritzBox admin backend there is an option to delete idle connections. But for me it is unclear if this is just a removement from the overview. The latter is easy to achieve by filtering the hosts:
active_hosts = [host for host in hosts if host['status']]
Basically with fritzconnection you can execute every action provided by the TR-064 protokoll as documented by AVM: https://avm.de/service/schnittstellen/
If you find a corresponding action to delete idle connections please let me know. May be we can add it as a shortcut to the FritzHosts library module.
I use the following example script to list all hosts from my FritzBox:
Can I use
fritzconnection
to remove all inactive hosts from the FritzBox? And what is the best way to do it?