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.

Files for pyhdpowerview, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size pyhdpowerview-0.0.8.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page