Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bulb ¶
type Bulb struct {
Addr string
}
Bulb represents all the info necessary to identify a smart light.
type Command ¶
type Command struct { Id int `json:"id"` Method string `json:"method"` Params []interface{} `json:"params"` }
Command is a a JSON-serializable command in the Yeelight API format.
func NewCommand ¶
NewCommand creates a new Command.
type ParsedResponse ¶
ParsedResponse is an already parsed smart light response.
func (ParsedResponse) Success ¶
func (p ParsedResponse) Success() bool
Success indicates whether a Command finished without errors.
Click to show internal directories.
Click to hide internal directories.