It might be worth mentioning that the offending default rule is one of what TP-Link calls "Smart Control" rules, which are managed by the smartlife.iot.sensor_trigger module. The following command will probably delete the offending rule:
Note, to really do it properly, you shouldn't assume that the id of the rule will be "0". Instead, you should call get_weekday_routine and iterate over the returned array to find the id of each existing rule, which you can then pass in turn to delete_weekday_routine. On my KS200M, the one allowed Smart Control rule is always given "id": "0", but that seems to be an anomaly, as all other rule sets in the Kasa API (that I've encountered at least) use random hex strings as rule identifiers.
changed the title [-]Implement smart actions (smartlie.iot.sensor_trigger)[/-][+]Implement smart actions (smartlife.iot.sensor_trigger)[/+]on May 17, 2023
If you have a packet capture of the communications with that module, it would be helpful to create a new issue with the available commands
Thanks to your gentle nudge, I finally got off my lazy rump and have published my Kasa Smart API documentation and tool that I've been working on for a while. I think you might benefit from the API document, as it details many methods that I believe your library is lacking.
Activity
whitslack commented on May 20, 2023
Quoting @rytilahti:
Thanks to your gentle nudge, I finally got off my lazy rump and have published my Kasa Smart API documentation and tool that I've been working on for a while. I think you might benefit from the API document, as it details many methods that I believe your library is lacking.
rytilahti commented on Nov 3, 2023
Just a friendly ping, #541 adds a link to your repository, @whitslack :-)