Skip to main content

Python API for talking to Powerview Hub

Project description

Status

pyhdpowerview

Python3 interface implementation for Powerview Hub

Notes

This is for use with Home-Assistant

Usage

from pyhdpowerview import PowerView

# Connect via IP
pv = PowerView('192.168.1.50')

# Return an array of shade Id objects
shades = pv.get_shades()

# Return shade object
shade = pv.get_shade(shade_id)

# Return attributes of shade
print(shade.id)
print(shade.name)
print(shade.position) # Position represented 0 (close) to 100 (open)
print(shade.battery_level) # Battery level %

# Update shade position

pv.get_status(shade_id)

# Close shade

pv.close_shade(shade_id)

# Open Shade

pv.open_shade(shade_id)

# Stop shade in motion

pv.stop_shade(shade_id)

# Set shade to specific position (0 - 100)

pv.set_shade_position(shade_id, 55)

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

pyhdpowerview-0.0.8.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file pyhdpowerview-0.0.8.tar.gz.

File metadata

  • Download URL: pyhdpowerview-0.0.8.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

File hashes

Hashes for pyhdpowerview-0.0.8.tar.gz
Algorithm Hash digest
SHA256 05d36165f4f02d0d1ac22ce91379d3a7156b2eb8d832233d81ce70ea9ac8bffe
MD5 548ef525c1384fd3dcac2cba1bae2a39
BLAKE2b-256 7d42a8cabfef6249d82faea01bf3b4d6b3b3332bec17c8f76aa949b1cf64ccc3

See more details on using hashes here.

Supported by

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