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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pypowerview-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2263c94a59f1cf3620cc2ec6cc8faef6d44b25b63312a2f55d6cc882f740375 |
|
MD5 | 89282fad1cf44097899a247c2c02d7af |
|
BLAKE2b-256 | 5f51a5cf3b92fc84ed46e1e8abbe2bc0a6084921545202145063b74845b545d6 |