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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68826f79ed90b057e4528d37a5c6aa944b4cf777c17e446c0da97d788c041527 |
|
MD5 | f9d98b2651d0c331cf0e506cae42982e |
|
BLAKE2b-256 | 7915d1f64e05acbb0e469fb503d3475280ab46076040ca8a46fcf19bf875a9b9 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a6b1c6e5af50675274c4a2a2f16dc8336f7bbbc275c8ed5889b5e3b34d2b242 |
|
MD5 | 50d503713bad739979dfeef0929a506c |
|
BLAKE2b-256 | 7da813db066b7a9a8b0ae4f68229a1200119aecd2394d7f2c4dd4042a47e7278 |