Skip to content

llun/hksensibo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hksensibo

Sensibo accessory for hc.

Usage

With single pod accessory

package main

import (
	"github.com/brutella/hc"
	"github.com/brutella/hc/accessory"
	"github.com/llun/hksensibo"
)

func main() {
	pods := hksensibo.Lookup("user-api-key")
	if (len(pods) > 0) {
		firstPod := pods[0]
		t, err := hc.NewIPTransport(hc.Config{
			Pin:  "32191123",
		}, firstPod)
		if err != nil {
			log.Fatal(err)
		}

		hc.OnTermination(func() {
			t.Stop()
		})

		t.Start()
	}
}

or using with bridge

package main

import (
	"github.com/llun/hkbridge"
)

func main() {
	hkbridge.Start()
}

and with hkbridge configuration

{
  "name": "Bridge",
  "manufacturer": "AwesomeMe",
  "serial": "141592653",
  "model": "WPQ864",
  "pin": "12345678",
  "accessories": [
    {
      "type": "github.com/llun/hksensibo",
      "option": {
        "key": "sensibo-key"
      }
    }
  ]
}

License

MIT

About

Sensibo HomeControl accessory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages