Documentation
¶
Index ¶
- func ActivateScene(client *lifx.Client, sceneUUID string, payload interface{}) (lifx.Response, error)
- func BreatheEffect(client *lifx.Client, selector string, payload interface{}) (lifx.Response, error)
- func Cycle(client *lifx.Client, selector string, payload interface{}) (lifx.Response, error)
- func GetLights(client *lifx.Client, selector string) ([]device.Device, error)
- func GetScenes(client *lifx.Client) ([]device.Scene, error)
- func PulseEffect(client *lifx.Client, selector string, payload interface{}) (lifx.Response, error)
- func SetState(client *lifx.Client, selector string, payload interface{}) (lifx.Response, error)
- func SetStates(client *lifx.Client, payload interface{}) (lifx.Response, error)
- func StateDelta(client *lifx.Client, selector string, payload interface{}) (lifx.Response, error)
- func TogglePower(client *lifx.Client, selector string) (lifx.Response, error)
- func ValidateColor(client *lifx.Client, color string) (device.Color, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateScene ¶
func ActivateScene(client *lifx.Client, sceneUUID string, payload interface{}) (lifx.Response, error)
ActivateScene activates a scene from your LIFX account
func BreatheEffect ¶
func BreatheEffect(client *lifx.Client, selector string, payload interface{}) (lifx.Response, error)
BreatheEffect performs a breathe effect by slowly fading between the given colors.
func PulseEffect ¶
PulseEffect performs a pulse effect by quickly flashing between the given colors
func SetState ¶
SetState sets the state of the lights within the given selector, and returns a LIFX Response
func SetStates ¶
SetStates sets multiple states across multiple selectors, and returns a LIFX Response
func StateDelta ¶
StateDelta changes the state of the lights by the amount specified
func TogglePower ¶
TogglePower turns off lights if any of them are on, or turns them on if they are all off.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.