Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RGBToYeelight ¶
Types ¶
type Brightness ¶
type Brightness struct { *properties.BrightnessProperty // contains filtered or unexported fields }
func NewBrightness ¶
func NewBrightness(bulb *YeelightDevice, value properties.Integer) *Brightness
func (*Brightness) SetValue ¶
func (b *Brightness) SetValue(v properties.Integer) error
type Color ¶
type Color struct { *properties.ColorProperty // contains filtered or unexported fields }
func NewColor ¶
func NewColor(bulb *YeelightDevice, value string) *Color
type ColorTemperatureProperty ¶
type ColorTemperatureProperty struct { *properties.ColorTemperatureProperty // contains filtered or unexported fields }
func NewColorTemperatureProperty ¶
func NewColorTemperatureProperty(bulb *YeelightDevice, value properties.Integer) *ColorTemperatureProperty
func (ColorTemperatureProperty) SetValue ¶
func (ct ColorTemperatureProperty) SetValue(v properties.Integer) error
type NotifyMessage ¶
type On ¶
type On struct { *properties.OnOffProperty // contains filtered or unexported fields }
func NewOn ¶
func NewOn(bulb *YeelightDevice, value bool) *On
type YeeColorModeProperty ¶
type YeeColorModeProperty struct { *properties.ColorModeProperty // contains filtered or unexported fields }
func NewColorMode ¶
func NewColorMode(device *YeelightDevice, value string) *YeeColorModeProperty
type YeelightAdapter ¶
func NewVirtualAdapter ¶
func NewVirtualAdapter(adapterId string) *YeelightAdapter
func (*YeelightAdapter) HandleDeviceRemoved ¶
func (a *YeelightAdapter) HandleDeviceRemoved(device proxy.DeviceProxy)
func (*YeelightAdapter) HandleDeviceSaved ¶
func (a *YeelightAdapter) HandleDeviceSaved(msg messages.DeviceSavedNotificationJsonData)
func (*YeelightAdapter) StartPairing ¶
func (a *YeelightAdapter) StartPairing(timeout <-chan time.Time)
type YeelightDevice ¶
type YeelightDevice struct { *devices.Light *yeelight.Client // contains filtered or unexported fields }
func NewYeelightBulb ¶
func NewYeelightBulb(clint *yeelight.Client, id, name, ip string) *YeelightDevice
func (*YeelightDevice) HandleRemoved ¶
func (d *YeelightDevice) HandleRemoved()
func (*YeelightDevice) SetCredentials ¶
func (d *YeelightDevice) SetCredentials(username, password string) error
func (*YeelightDevice) SetPin ¶
func (d *YeelightDevice) SetPin(pin string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.