Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.
Andrew Pearson edited this page Sep 23, 2019 · 4 revisions

Overview

Insteon PLM is a TypeScript/JavaScript library for the Insteon PowerLinc Modem family of devices. This library's goal is to allow easy access to the the PowerLinc Modem and through the PowerLinc Modem allow easy programmatic access to the Insteon ecosystem of devices.

Supported Device List

Insteon USB Modem Interface (2413U)
Insteon Portable USB Adapter (2448A7)

Demo Usage

/* Libaries */
import PLM from '../src/main';

async function main(){

  /* Setup */
  const modem = new PLM('/dev/tty.usbserial-A60336ZZ');

  modem.on('connected', async () => {

    console.debug('Connected');

    await modem.setConfig(true, true, true, true);

    console.log(modem.config);

    const res = modem.sendStandardCommand([0x42,0x42,0x42], 0x0F, 0x13, 0x00);
      
    console.log('Message was successful', res.ack);
  });

  /* Printing incoming packets */
  modem.on('packet', data => {
    console.info('Packet:', data);
  });

}

main();

Insteon Resources

The Madreporite Nexus: Insteon Programming