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 (including EVOK v3) 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-assistant project works.
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.4.tar.gz
(3.6 kB
view hashes)
Built Distributions
Close
Hashes for evok_ws_client-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d2ccca3484a46e1eff0c909364a00faa38ab1df06264229814bcef0b61db968 |
|
MD5 | 029bcfa3cfda1a62459748a455cf4238 |
|
BLAKE2b-256 | 09f508af894943c7067421ef7ead9eba2e627835b4df5330811d9d5f0f205522 |
Close
Hashes for evok_ws_client-0.0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 334c08030d114c93a46584393651818d34de784b1745277ba17a5aaead1fe399 |
|
MD5 | 54ecc43a2fe6d07b71267b0a6e35df9a |
|
BLAKE2b-256 | 1cea3156be1d161b4dd2b1a9946148e418ee435a12467d1feb4486b51d8c6693 |