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

Feature Request - Toggle Command · Issue #188 · python-kasa/python-kasa · GitHub

Feature Request - Toggle Command #188

Closed

Description

add toggle command as an alternative to on or off

Activity

  1. kirichkov commented on Aug 7, 2021

    Contributor

    this is basically:

    if device.is_on():
        device.turn_off()
    else:
        device.turn_on()

    Given this is a low-level library, I don't think this is the place to implement this functionality. It should be implemented in the application using it.

  2. emerysteele commented on Aug 10, 2021

    Author

    I was just triggering kasa.exe from desktop shortcuts, but needed to have separate shortcuts for on/off.

    But now, I figured out how to make a sort of hotkey script with python + implement as you said to check device state then toggle. Liking this solution much better, thanks!

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

    No labels
    No 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