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) ImportLights ¶
func (b *Backend) ImportLights(l *chromaticity.LightResource, from []byte)
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:"-"` }
Click to show internal directories.
Click to hide internal directories.