Client for connectin to Unipi devices runing EVOK API via websockets
Project description
evok-ws-client
A simple wrapper/library for a client using websockets to connect to Evok API running on Unipi devices. The library was implemented primarily to be used with home-assistant but hopefully it might find also other usage as well.
Functionality wise it supports bare minimum so that my home-assitent project can function.
Example
import asyncio
from evok_ws_client import *
ip_addr = "192.168.77.21"
async def main():
neuron = UnipiEvokWsClient(ip_addr, "M203", "test_neuron")
try:
await neuron.evok_connect()
await neuron.evok_full_state_sync()
print (await neuron.evok_receive())
except:
pass
if __name__ == "__main__":
asyncio.run(main())
License
MIT License
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
evok-ws-client-0.0.3.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for evok_ws_client-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 743c459806205e044c4a4d028cc4cb963cc7f0ef859253fbc2312de537150372 |
|
MD5 | 23491be6f1b39fb24167af078ca158c8 |
|
BLAKE2b-256 | 1db839f2f7743355f9d0313190045114a7651604de94b59abcbec11e9f89aa56 |