Introduction

Enzo Server
  Installation
  Quick Start

  Core Features
    Async Calls
    ConnectionStrings
    Edge Cache
    HTTP Access
    Scheduling
    Views

  Advanced Capabilities
    Change Data Capture

  Administration
    Configuration Settings
    Logins & ACL
    Auditing
    Current Executions
    Linked Server
    SSL

  Adapters
    Azure Bus
    Azure IoT Hub
    Azure Key Vault
    Azure Storage
    Couchbase
    CSV
    DB (RDBMS)
    Files
    Flight Aware
    FTP
    Geonames
    Insteon
    Loggly
    Messaging (SMS/SMTP)
    MongoDB
    Motus
    MSAD
    MSMQ
    Pipeline
    Pressero
    RabbitMQ
    SalesForce
    Shard
    SharePoint
    SQL Server
    Threading
    Twilio
    Twitter
    VellemanDMX
    Weather (Underground)
    Whiparound
    WMI
    Xls (Excel)
    ZIP


  SDK
    Overview
    Installation
    DevHost
    Create A Simple Adapter
    Handler Columns

    Advanced SDK Concepts
      Handler Decorators
      Dynamic Columns
      Table & Table Enumerators
      Virtual Tables

/adapters/insteon




Insteon


This adapter allows you to build IoT applications with Insteon devices (using an Insteon Modem) through simple SQL and REST commands.


Configuration Settings



Name Description Default
Boolean _isDefault Make this the default configuration. Defaults to true if configName is already the default.
String commPort The default COMM port for Insteon communication COM1

Handlers



ControllerInfo Get attached controller details details 

Arguments


SQL Call

exec bsc.Insteon.ControllerInfo


Http Call

/bsc/insteon/controllerinfo

Output Columns

String DeviceCatDevice Category
String SubcategoryDevice Subcategory
String FirmwareFirmware version
Light Turn a light on/off details 

Arguments

Name Description Default
DevId R Device ID
OnOff True/false to turn the light on/off True

SQL Call

exec bsc.Insteon.Light 123, 1    -- turn the light on at address 123
exec bsc.Insteon.Light 123, 0 -- turn the light off at address 123
update bsc.Insteon.Light set OnOff = 1 where DevId = 123 -- turn the light on at address 123
update bsc.Insteon.Light set OnOff = 0 where DevId = 123 -- turn the light off at address 123


Http Call

/bsc/insteon/light

Output Columns

This call does not return data.

LightLevel Dim a light up/down to the specified level details 

Arguments

Name Description Default
DevId R Device ID
level True/false to turn the light on/off. Must be between 0 and 255. 255

SQL Call

exec bsc.Insteon.LightLevel 123, 128    -- turn the light halfway on at address 123
exec bsc.Insteon.LightLevel 123, 64 -- turn the light to a quarter brightness at address 123
update bsc.Insteon.LightLevel set Level = 128 where DevId = 123 -- turn the light halfway on at address 123
update bsc.Insteon.LightLevel set Level = 64 where DevId = 123 -- turn the light to a quarter brightness at address 123


Http Call

/bsc/insteon/lightlevel

Output Columns

This call does not return data.

ListDevices List the devices available to the attached Insteon controller. details 

Arguments


SQL Call

exec Insteon.ListDevices
select * from Insteon.ListDevices


Http Call

/bsc/insteon/listdevices

Output Columns

String CommPortSerial device used
Int32 DevIdDevice ID
Int32 DevIdHiDevice ID high byte
Int32 DevIdMidDevice ID middle byte
Int32 DevIdLoDevice ID low byte
String TypeType of device
RampLevel Gracefully dim a light up/down to the specified level details 

Arguments

Name Description Default
DevId R Device ID
level True/false to turn the light on/off. Must be between 0 and 255. 255

SQL Call

exec bsc.Insteon.RampLevel 123, 128    -- turn the light halfway on at address 123
exec bsc.Insteon.RampLevel 123, 64 -- turn the light to a quarter brightness at address 123
update bsc.Insteon.RampLevel set Level = 128 where DevId = 123 -- turn the light halfway on at address 123
update bsc.Insteon.RampLevel set Level = 64 where DevId = 123 -- turn the light to a quarter brightness at address 123


Http Call

/bsc/insteon/ramplevel

Output Columns

This call does not return data.

RefreshDevices Update the internal list of available devices details 

Arguments


SQL Call

exec bsc.Insteon.RefreshDevices


Http Call

/bsc/insteon/refreshdevices

Output Columns

This call does not return data.

SetCommPort Changes the COM port used for communication details 

Arguments

Name Description Default
commPort R The COM port to use for Insteon commands

SQL Call

exec bsc.Insteon.SetCommPort 'COM3'


Http Call

/bsc/insteon/setcommport

Output Columns

This call does not return data.