Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface { common.Device Handle(*packet.Packet) error Close() error Seen() time.Time Provisional() bool SetProvisional(bool) GetProduct() (product.Product, error) Discover() error RefreshThrottle() <-chan struct{} Outbound() transport.Outbound }
type InfoResponse ¶
type InfoResponse struct { Result common.DeviceInfo `json:"result"` ID uint32 `json:"ID"` }
type Yeelight ¶
type Yeelight struct { Device *capability.Light *capability.Power }
func NewYeelight ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.