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

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

@asyncio.coroutine
def start_insteonplm(loop):
    connection = insteonplm.Connection.create(
            device='/dev/some_device',
            host='some_hostname_or_ip_address',
            port='some_ip_port',
            username='some_username',
            password='some_password',
            loop=loop,
            poll_devices=True,
            workdir='some_directory_name')

Startup Process

IM Class

  • PLM Class

  • Hub Class

Clone this wiki locally