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

How to access KP115 runtime data? · Issue #244 · python-kasa/python-kasa · GitHub

Repository navigation

How to access KP115 runtime data? #244

Closed

Description

I've been using python-kasa to operate and get data from a KP115 smart plug but I can't figure out how to get the runtime data.

In the Kasa app it can display current and total run-time today, plus daily average and totals for last 7 days and past 30 days.

You can get the runtime the plug was last switched on by querying the device time and the on since time, but there doesn't seem to be any way to access the other run-time data.

Am I missing something?

I did spot that the tplink cloud api python project appeared to do this piekstra/tplink-cloud-api#43. From what I can see it's using the schedule API to retrieve runtime stats, but I'm not sure whether this means it's possible to get the runtime data with a python-kasa raw command.

Would it be possible to do this with python-kasa?

Thanks

Activity

  1. rytilahti commented on Oct 29, 2021

    Member

    #243, when it gets done, adds the ability to access the usage data.

  2. rytilahti commented on Apr 5, 2022

    Member

    The current master has now a way to do this, see https://python-kasa.readthedocs.io/en/latest/smartdevice.html#usage-statistics and kasa.modules.Usage on the bottom of the modules docs

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