Skip to content

Startup Process

Tom Harris edited this page Jun 9, 2018 · 11 revisions

To startup up the InsteonPLM module create a call to insteonplm.Connection.create. Ideally this is wrapped in an asyncio loop. A simple startup example would be:

import asyncio
import insteonplm


@asyncio.coroutine
def start_insteonplm(loop):
    connection = insteonplm.Connection.create(
            device='/dev/some_device',
            loop=loop)


loop = asyncio.get_event_loop()
asyncio.ensure_future(start_insteonplm(loop))
loop.run_forever()

Startup Process

IM Class

  • PLM Class

  • Hub Class

Clone this wiki locally