Skip to main content

Python API for talking to Powerview Hub

Project description

Status

pypowerview

Python3 interface implementation for Powerview Hub

Notes

This is for use with Home-Assistant

Usage

from pypowerview import PowerView

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

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

# Return first shade in array
shade = shades[0]

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

# Update shade position

pv.get_status(shade)

# Close shade

pv.close_shade(shade)

# Open Shade

pv.open_shade(shade)

# Stop shade in motion

pv.stop_shade(shade)

# Set shade to specific position (0 - 100)

pv.set_shade_position(shade, 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

pypowerview-0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

pypowerview-0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pypowerview-0.2.tar.gz.

File metadata

  • Download URL: pypowerview-0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for pypowerview-0.2.tar.gz
Algorithm Hash digest
SHA256 68826f79ed90b057e4528d37a5c6aa944b4cf777c17e446c0da97d788c041527
MD5 f9d98b2651d0c331cf0e506cae42982e
BLAKE2b-256 7915d1f64e05acbb0e469fb503d3475280ab46076040ca8a46fcf19bf875a9b9

See more details on using hashes here.

File details

Details for the file pypowerview-0.2-py3-none-any.whl.

File metadata

  • Download URL: pypowerview-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for pypowerview-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a6b1c6e5af50675274c4a2a2f16dc8336f7bbbc275c8ed5889b5e3b34d2b242
MD5 50d503713bad739979dfeef0929a506c
BLAKE2b-256 7da813db066b7a9a8b0ae4f68229a1200119aecd2394d7f2c4dd4042a47e7278

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