Documentation ¶
Index ¶
- type Hue
- type Light
- func (l *Light) ColorLoop()
- func (l *Light) Commit() (err error)
- func (l *Light) Copy() (light *Light)
- func (l *Light) NoColorLoop()
- func (l *Light) Off()
- func (l *Light) On()
- func (l *Light) Print()
- func (l *Light) SetBrightness(brightness int)
- func (l *Light) SetColorHex(color string) (err error)
- func (l *Light) SetColorXY(colorX, colorY float64) (err error)
- func (l *Light) SetState(state bool)
- func (l *Light) SetTransition(transition time.Duration)
- func (l *Light) Switch()
- func (l *Light) Update() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hue ¶
func (*Hue) GetLightsById ¶
type Light ¶
type Light struct { Id string UniqueId string Name string Type string State bool Reachable bool Alert string Effect string Mode string Brightness int Hue int Saturation int ColorX float64 ColorY float64 Temperature int // contains filtered or unexported fields }
func (*Light) NoColorLoop ¶
func (l *Light) NoColorLoop()
func (*Light) SetBrightness ¶
func (*Light) SetColorHex ¶
func (*Light) SetColorXY ¶
func (*Light) SetTransition ¶
Click to show internal directories.
Click to hide internal directories.