npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

insteon-hub2

v1.1.3

Published

Control and monitor Insteon devices through Insteon Hub 2

Downloads

18

Readme

insteon-hub2

NPM Version NPM Downloads MIT License Node.js Version GitHub Build Status Codecov Status Code Climate Gitter Known Vulnerabilities

Library for monitoring and controlling Insteon devices through an Insteon hub.

Architucture

The INSTEON Hub 2 has a HTTP port that allows for controlling and monitoring the hub and the devices controlled by it. To send a command to the hub, you send a HTTP request. To read responses from the hub is a little trickier. You send a HTTP request to get the buffer which returns a string of hexadecimal characters. This string implements a ring (or circular) buffer. In order to not miss and messages, this buffer must be read at a rate of 20 times per second.

INSTEON Command Types

SD, Standard-length Direct Commands direct SDO v directAck SDK v directNak SDN v

ED, Extended-length Direct Commands direct EDO v directAck EDK directNak EDN

SA, Standard-length ALL-Link Commands allLinkBroadcast SAO v

EA, Extended-length ALL-Link Commands allLinkBroadcast EAO

SC, Standard-length ALL-Link Cleanup Commands allLinkCleanup SCO v allLinkCleanupAck SCK v allLinkCleanupNak SCN v

EC, Extended-length ALL-Link Cleanup Commands allLinkCleanup ECO allLinkCleanupAck ECK allLinkCleanupNak ECN

SB, Standard-length Broadcast Commands broadcast SBO v

EB, Extended-length Broadcast Commands broadcast SBO

INSTEON Message Types

There are 16 logically possible INSTEON Message Types denoted by four bits in the Message Flags byte within an INSTEON Message. A three-letter mnemonic designates the INSTEON Message Type. The first letter is S for Standard-length or E for Extended-length messages. The second letter is D for Direct, B for Broadcast, A for ALL-Link Broadcast, or C for ALL-Link Cleanup messages. The third letter, which is optional, is O for Outgoing, K for ACK, or N for NAK messages. Valid Outgoing INSTEON Message Types are SD, ED, SA, SC, and SB. Valid INSTEON Acknowledgement Message Types are SDK, SDN, SCK, and SCN.

Currently used (as of 2/2009):

  • SD, Standard-length Direct Commands

    • direct SDO v (receives acknowledgement)
    • directAck SDK v
    • directNak SDN v
  • ED, Extended-length Direct Commands

    • direct EDO v (receives acknowledgement)
  • SA, Standard-length ALL-Link Commands

    • allLinkBroadcast SAO v
  • SC, Standard-length ALL-Link Cleanup Commands

    • allLinkCleanup SCO v (receives acknowledgement)
    • allLinkCleanupAck SCK v
    • allLinkCleanupNak SCN v
  • SB, Standard-length Broadcast Commands

    • broadcast SBO

Undocumented IM commands

  • 59-5F (5C received)
  • 74-7F (77 and 7F received)

Hardware

| Model | Version | Revision | Category | Subcategory | Other | | -------- | ------- | -------- | -------- | ----------- | ------------------------------------------------- | | 2477D | 8.2 | 3117 | 01 | 20 | 45 | | 2477DH | 8.2 | 3117 | 01 | 2D | 44 | | 2477S | 7.2 | 2717 | 01 | 2A | 45 | | 2663-222 | 7.4 | 4117 | 01 | 39 | 44 | | 2245-222 | 2.8 | 3417 | 03 | 33 | A3 04-20140904 1013 Build Dec 18 2017 09:43:02 |

Files

  • allLinkDatabase.js
    • createAllLinkDatabase
  • allLinkRecord.js
    • createAllLinkRecord
  • commandAnnotator.js
    • createCommandAnnotator
  • constants.js
    • ALL_LINK_CODES
    • ALL_LINK_CONTROL_CODES
    • ALL_LINK_CONTROL_NAMES
    • ALL_LINK_TYPES
    • BUTTON_EVENTS
    • INSTEON_MESSAGE_TYPES
    • NAK_ERROR_CODES
    • OPERATING_FLAGS
    • OUTLET_CODES
    • OUTLET_NAMES
    • ENGINE_VERSION_CODES
    • ENGINE_VERSION_NAMES
    • X10_COMMANDS
    • X10_HOUSE_CODES
    • X10_UNIT_CODES
  • device.js
    • createDevice
  • deviceCategories.js
    • '00'
    • '01'
    • '02'
    • '03'
    • '04'
    • '05'
    • '06'
    • '07'
    • '08'
    • '09'
    • '0A'
    • '0B'
    • '0C'
    • '0D'
    • '0E'
    • '0F'
    • '10'
    • '11'
    • '12'
    • '13'
    • '14'
    • '15'
    • '16'
    • '17'
    • FE
    • FF
  • deviceManager.js
    • createDeviceManager
  • encodeCommand.js
    • encodeCommand
    • commandResponseMatcher
  • house.js
    • createHouse
  • parseInsteonCommand.js
    • parseInsteonCommand
  • parsePlmBuffer.js
    • parsePlmBuffer
  • parsers.js
    • parsers
  • plm.js
    • createPlm
  • plmBase.js
    • createPlmBase
  • plmBufferProcessor.js
    • createPlmBufferProcessor
  • plmCommandQueue.js
    • createPlmCommandQueue
  • plmCommandStream.js
    • createPlmCommandStream
  • plmStream.js
    • createPlmStream

References