0.6.0 • Published 4 years ago

insteon-plm v0.6.0

Weekly downloads
5
License
MIT
Repository
-
Last release
4 years ago

Insteon Powerlinc Modem

Actions Status

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 PowerLincModem from '../src/main';

async function main(){

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

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

    console.debug('Ready');

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

    console.log(modem.config);

    const res = await 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();

Related Projects

insteon-terminal

Insteon Resources

The Madreporite Nexus: Insteon Programming
Insteon FAQ

0.6.0

4 years ago

0.5.0

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

6 years ago

0.2.0

6 years ago