Documentation ¶
Index ¶
- type Backend
- type TPLinkClient
- type TPLinkLight
- func (t *TPLinkLight) GetInfo() (i *chromaticity.LightInfo)
- func (t *TPLinkLight) GetNumPixels() (p uint16)
- func (t *TPLinkLight) GetState() (s *chromaticity.State)
- func (t *TPLinkLight) GetType() string
- func (t *TPLinkLight) SetColor(c colorful.Color)
- func (t *TPLinkLight) SetColors(c []colorful.Color)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
Clients []TPLinkClient `json:"clients"`
}
func (*Backend) DiscoverLights ¶
func (b *Backend) DiscoverLights(l *chromaticity.LightResource)
func (*Backend) ImportLights ¶
func (b *Backend) ImportLights(l *chromaticity.LightResource, from []byte)
type TPLinkClient ¶
type TPLinkLight ¶
type TPLinkLight struct { *chromaticity.LightInfo LightState *chromaticity.State `json:"state"` Client *TPLinkClient `json:"-"` }
func (*TPLinkLight) GetInfo ¶
func (t *TPLinkLight) GetInfo() (i *chromaticity.LightInfo)
func (*TPLinkLight) GetNumPixels ¶
func (t *TPLinkLight) GetNumPixels() (p uint16)
func (*TPLinkLight) GetState ¶
func (t *TPLinkLight) GetState() (s *chromaticity.State)
func (*TPLinkLight) GetType ¶
func (t *TPLinkLight) GetType() string
func (*TPLinkLight) SetColor ¶
func (t *TPLinkLight) SetColor(c colorful.Color)
func (*TPLinkLight) SetColors ¶
func (t *TPLinkLight) SetColors(c []colorful.Color)
Click to show internal directories.
Click to hide internal directories.