Skip to content
Snippets Groups Projects
Commit d21f22cd authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Starting

As usual, no doc, no sample file.. this should be funny
parent c6bd8076
No related branches found
No related tags found
No related merge requests found
# from xaal.lib import tools
import pdb
import logging
from zwave_js_server.client import Client as ZwaveClient
from aiohttp.client import ClientSession
PACKAGE_NAME = 'xaal.zwavejs'
logger = logging.getLogger(__name__)
URL = "ws://10.77.3.143:3000"
class GW:
def __init__(self, engine):
self.engine = engine
logger.debug("ZwaveJS gateway initialized")
engine.on_start(self.start)
async def start(self):
sess = ClientSession()
self.client = ZwaveClient(URL, sess)
await self.client.connect()
await self.client.initialize()
await self.client.receive_until_closed()
def setup(eng):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment