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 details)
Built Distributions
File details
Details for the file evok-ws-client-0.0.4.tar.gz
.
File metadata
- Download URL: evok-ws-client-0.0.4.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/2.7.18rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80cc610622cca5262ab1ff1b4dd9a7115c67d1241617939334fb55714993a3a |
|
MD5 | 7d96833f8cf6d0aaf0c914484f353227 |
|
BLAKE2b-256 | 781fbe797440e57d059834569e08fa6279b564b15122ff3a341b180a3204b7a5 |
File details
Details for the file evok_ws_client-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: evok_ws_client-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/2.7.18rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d2ccca3484a46e1eff0c909364a00faa38ab1df06264229814bcef0b61db968 |
|
MD5 | 029bcfa3cfda1a62459748a455cf4238 |
|
BLAKE2b-256 | 09f508af894943c7067421ef7ead9eba2e627835b4df5330811d9d5f0f205522 |
File details
Details for the file evok_ws_client-0.0.4-py2-none-any.whl
.
File metadata
- Download URL: evok_ws_client-0.0.4-py2-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/2.7.18rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 334c08030d114c93a46584393651818d34de784b1745277ba17a5aaead1fe399 |
|
MD5 | 54ecc43a2fe6d07b71267b0a6e35df9a |
|
BLAKE2b-256 | 1cea3156be1d161b4dd2b1a9946148e418ee435a12467d1feb4486b51d8c6693 |