Skip to content

IM Class

Tom Harris edited this page Jun 12, 2018 · 12 revisions

Overview

The IM class is the an abstract class representing an Insteon Modem that handles reading and writing to the physical modem. The two concrete classes are:

The IM class inherits from the Insteon Device class and implements the asyncio.Protocol interface.

The IM class contains the following public properties:

  • devices: An instance of LinkedDevices that contains the list of Insteon and X10 devices that the IM can communicate to.
  • loop: The asyncio loop used to provide asynchronous handling of Insteon messages.
  • message_callbacks: An instance of MessageCallbacks used to define how inbound messages are processed by the module.
  • connection_made: An asyncio.protocol interface method which is called after a connection is made to the physical device.
  • data_received: An asyncio.protocol interface method which is called when the underlying transport receives data from the physical device.
  • connection_lost: An asyncio.protocol interface method which is called after the connection to the physical device is lost.
  • add_device_callback: Used by the control software to register a callback when a new device is added to the IM.devices list. During startup the IM ALDB is queried for the linked devices and each device is queried for its device information. When a new device is found, the registered callback(s) are called with the following interface: callback(device) where device is an Insteon Device or an X10Device.

PLM Class

Hub Class

Startup Process

IM Class

  • PLM Class

  • Hub Class

Clone this wiki locally