sladdlos

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2018 License: Apache-2.0 Imports: 10 Imported by: 2

README

Sladdlös

Sladdlös is another word for trådfri/trådlös (wire free/wireless).

It uses tradfri-mqtt to interact with the IKEA Trådfri gateway. It exposes groups and individual devices to Hemtjänst.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HemtjanstClient

type HemtjanstClient struct {
	sync.RWMutex
	MQTT      messaging.PublishSubscriber
	Id        string
	Announce  bool
	SkipGroup bool
	SkipBulb  bool
	// contains filtered or unexported fields
}

func NewHemtjanstClient

func NewHemtjanstClient(tree *tradfri.Tree, id string) *HemtjanstClient

func (*HemtjanstClient) OnConnect

func (h *HemtjanstClient) OnConnect(client messaging.PublishSubscriber)

func (*HemtjanstClient) OnNewAccessory

func (h *HemtjanstClient) OnNewAccessory(d *tradfri.Accessory)

func (*HemtjanstClient) OnNewGroup

func (h *HemtjanstClient) OnNewGroup(g *tradfri.Group)

func (*HemtjanstClient) OnNewScene

func (h *HemtjanstClient) OnNewScene(g *tradfri.Group, s *tradfri.Scene)

type HemtjanstDevice

type HemtjanstDevice struct {
	sync.RWMutex

	Topic string
	// contains filtered or unexported fields
}

func NewHemtjanstAccessory

func NewHemtjanstAccessory(client *HemtjanstClient, topic string, accessory *tradfri.Accessory, group *HemtjanstDevice) *HemtjanstDevice

func NewHemtjanstGroup

func NewHemtjanstGroup(client *HemtjanstClient, topic string, group *tradfri.Group) *HemtjanstDevice

func (*HemtjanstDevice) AddMember

func (h *HemtjanstDevice) AddMember(member *HemtjanstDevice)

func (*HemtjanstDevice) OnConnect

func (h *HemtjanstDevice) OnConnect()

func (*HemtjanstDevice) OnDiscover

func (h *HemtjanstDevice) OnDiscover()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL