A go library to communicate with Insteon devices
Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
plm
LICENSE
README.md
common.go

README.md

Go library for Insteon devices

This library provides communication with Insteon devices in the Go Language. http://www.insteon.net/

The goal of this project is to make communication with an Insteon network easy for go developers. Insteon is a home automation technology well suited for adoption by enthusiasts.

This project is in infancy and as yet only demonstrates a proof of concept communication with a PLM.

Install this package:

go get github.com/tarm/goserial
go get github.com/secesh/ginsteon

Example:

package main

import(
    "github.com/secesh/ginsteon/plm"
    "log"
    "runtime"
)

func main() {
    runtime.GOMAXPROCS(runtime.NumCPU())
    
    plm := plm.Plm{Port: "/dev/ttyUSB0"}
    log.Print("about to start")
    plm.Run()
    
    plm.Write("0260")
    plm.Write("0260")
    plm.Write("0260")
    plm.Write("0260")
    
    for {}
}