Documentation
¶
Index ¶
- func AllLightsOff() error
- func AllLightsOn() error
- func DeleteScene(id string) error
- func InitScenes(configPath string) error
- func LightOff(mac string) error
- func LightOn(mac string) error
- func LoadLights() error
- func LoadScenes() error
- func ModifyScene(req SceneSaveRequest) error
- func RefreshLight(mac string) error
- func RefreshLights() error
- func SaveScene(req SceneSaveRequest) error
- func SetColour(mac string, hue int, saturation int, brightness int, kelvin int, duration int) error
- func TriggerScene(id string) error
- type Light
- type LightResponse
- type Lights
- type Scene
- type SceneResponse
- type SceneSaveRequest
- type Scenes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllLightsOff ¶
func AllLightsOff() error
func AllLightsOn ¶
func AllLightsOn() error
func DeleteScene ¶
func InitScenes ¶
func LoadLights ¶
func LoadLights() error
func LoadScenes ¶
func LoadScenes() error
func ModifyScene ¶
func ModifyScene(req SceneSaveRequest) error
func RefreshLight ¶
func RefreshLights ¶
func RefreshLights() error
func TriggerScene ¶
Types ¶
type LightResponse ¶
type LightResponse struct {
Mac string `json:"mac"`
Name string `json:"name"`
State bool `json:"state"`
Colour golifx.HSBK `json:"colour"`
Group string `json:"group"`
}
func ListAllLights ¶
func ListAllLights() []LightResponse
type SceneResponse ¶
type SceneResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Order int `json:"order"`
Actions []string `json:"actions"`
}
func ListAllScenes ¶
func ListAllScenes() []SceneResponse
type SceneSaveRequest ¶
Click to show internal directories.
Click to hide internal directories.