Skip to content

rogierhofboer/powerviewApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hunter Douglas PowereView blinds API

Initialize your pv instance:

from powerview_api.powerview import PowerView

pv = PowerView("PowerView hub address")
scenedata = pv.get_scenes()
print(scenedata)

Or going for asyncio

import aiohttp
import asyncio

from powerview_api.powerview_async import PowerViewAsync

loop = asyncio.get_event_loop()
session = aiohttp.ClientSession(loop=loop)
pv = PowerViewAsync("192.168.2.4", session)


@asyncio.coroutine
def test(pv):
    # result = yield from pv.get_user_data()
    result = yield from pv.get_scenes()
    print(result)
    
loop.run_until_complete(test(pv))
session.close()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages