Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
Bridge implements a hue light bridge
type Light ¶
type Light struct { ID int `json:"id,omitempty"` Name string `json:"name"` State State `json:"state,omitempty"` Type string `json:"type,omitempty"` ModelID string `json:"modelid,omitempty"` SWVersion string `json:"swversion,omitempty"` Bridge *Bridge `json:"-"` }
Light represents an individual light component
type State ¶
type State struct { On bool `json:"on"` Hue uint16 `json:"hue,omitempty"` Effect string `json:"effect,omitempty"` Bri uint8 `json:"bri,omitempty"` Sat uint8 `json:"sat,omitempty"` CT uint16 `json:"ct,omitempty"` XY []float32 `json:"xy,omitempty"` Alert string `json:"alert,omitempty"` TransitionTime uint16 `json:"transitiontime,omitempty"` Reachable bool `json:"reachable,omitempty"` ColorMode string `json:"colormode,omitempty"` }
State represents all states of a light light
Click to show internal directories.
Click to hide internal directories.