Skip to main content

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)

Uploaded Source

Built Distribution

evok_ws_client-0.0.3-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page