zigbeeclient

package
v0.0.0-...-33c2882 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Gateway *embercli.EmberCliGateway `json:"gateway"`
	Aprondb string                    `json:"aprondb"`
	Devices []ZigbeeLightDev          `json:"-"`
}

func (*Backend) DiscoverLights

func (b *Backend) DiscoverLights(l *chromaticity.LightResource)

func (*Backend) GetType

func (b *Backend) GetType() string

func (*Backend) ImportLights

func (b *Backend) ImportLights(l *chromaticity.LightResource, from []byte)

func (*Backend) Sync

func (b *Backend) Sync()

type ZigbeeLight

type ZigbeeLight struct {
	*chromaticity.LightInfo
	LightState *chromaticity.State `json:"state"`
	Device     *ZigbeeLightDev     `json:"-"`
}

func (ZigbeeLight) GetInfo

func (z ZigbeeLight) GetInfo() *chromaticity.LightInfo

func (ZigbeeLight) GetNumPixels

func (z ZigbeeLight) GetNumPixels() uint16

func (ZigbeeLight) GetState

func (z ZigbeeLight) GetState() *chromaticity.State

func (ZigbeeLight) GetType

func (z ZigbeeLight) GetType() string

func (ZigbeeLight) SetColor

func (k ZigbeeLight) SetColor(c colorful.Color)

func (ZigbeeLight) SetColors

func (k ZigbeeLight) SetColors(c []colorful.Color)

type ZigbeeLightDev

type ZigbeeLightDev struct {
	zigbee.ZigbeeDevice
	PrevLightState *chromaticity.State `json:"state"`
	LightState     *chromaticity.State `json:"state"`
	EndpointId     uint8               `json:"-"`
	Type           string              `json:"-"`
}

Jump to

Keyboard shortcuts

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