Skip to main content

Client package to access powerplanner API

Project description

PowerPlanner API Lib

Library to support accessing the powerplanner API Mainly used for the Home assistant integration

Create an instance with your api key from powerplanner

update()

Fetches all schedules from the powerplanner API and returns the raw json result

If there is removed or added plans these will be available in the "new_plans" & "old_plans" variable The "plans_changed" variable will also be true.

get_next_change(name: str)

returns when a plan will change its enabled status

add_sensor(sensor)

Adds a sensor to the collection and triggers the assigned callback

remove_sensor(sensor_name: str)

Removes a sensor from the collection

time_to_change(name: str)

Returns how many seconds left it is before the plan changes status

is_on(name: str)

Returns the current status for a plan by checking the schedule

authenticate():

Checks if the api key is correct

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

powerplanner-lib-0.0.10.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

powerplanner_lib-0.0.10-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file powerplanner-lib-0.0.10.tar.gz.

File metadata

  • Download URL: powerplanner-lib-0.0.10.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for powerplanner-lib-0.0.10.tar.gz
Algorithm Hash digest
SHA256 8a89b48a432022efa12c07a5d24ac3ef15bfdca6dbe2c38c53e59dcee63298c5
MD5 5c4731f2ed6bd1e9d3863356c25145ee
BLAKE2b-256 303823c88f97922bcd0740ac3b24be920dee926265a48191e8a52ae5e16f35eb

See more details on using hashes here.

File details

Details for the file powerplanner_lib-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for powerplanner_lib-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 163d877d9cf98be68699e4322cb45dbe4c4849ca14a5bf5666f9ae3dde40b7ab
MD5 0b0d4ff92d452ae6e82661f415374181
BLAKE2b-256 fa18157c57fe717df784a655e9c13c5e6f5146b97ecad4933b9ecb540f81d19e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page