FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Implement smart actions (smartlife.iot.sensor_trigger) · Issue #456 · python-kasa/python-kasa · GitHub

Repository navigation

Implement smart actions (smartlife.iot.sensor_trigger) #456

Open

Description

Some devices support device-based triggers which are not currently implemented by this library.

For example:

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:

{"smartlife.iot.sensor_trigger": {"delete_weekday_routine": {"id": "0"}}}

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.

Originally posted by @whitslack in #453 (comment)

Activity

  1. changed the title [-]Implement smart actions (smartlie.iot.sensor_trigger)[/-] [+]Implement smart actions (smartlife.iot.sensor_trigger)[/+] on May 17, 2023
  2. whitslack commented on May 20, 2023

    Contributor

    Quoting @rytilahti:

    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.

  3. rytilahti commented on Nov 3, 2023

    MemberAuthor

    Just a friendly ping, #541 adds a link to your repository, @whitslack :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL