Documentation
¶
Index ¶
- Variables
- func Assert(ctx context.Context, l *HueLight, mode ToggleMode) error
- func GetGroupMap() map[string]*HueGroup
- func GetLightMap() map[string]*HueLight
- func GetSceneMap() map[string]*HueScene
- func GetSensorMap() map[string]*HueSensor
- func NeedsUpdate()
- type Bridge
- func (c *Bridge) FindGroup(input string) (light *HueGroup, err error)
- func (c *Bridge) FindLight(input string) (light *HueLight, err error)
- func (c *Bridge) FindSensor(input string) (light *HueSensor, err error)
- func (c *Bridge) Lights() []*HueLight
- func (c *Bridge) Log() *zerolog.Logger
- func (c *Bridge) Run(e *zerolog.Event, level zerolog.Level, msg string)
- type HueGroup
- type HueLight
- type HueScene
- type HueSensor
- type Meta
- type Multiplex
- type ToggleMode
Constants ¶
This section is empty.
Variables ¶
Lucifer is the lightbringer.
Functions ¶
func GetGroupMap ¶
func GetLightMap ¶
func GetSceneMap ¶
func GetSensorMap ¶
func NeedsUpdate ¶
func NeedsUpdate()
Types ¶
type Bridge ¶
type Bridge struct { Info *huego.Config HueLights []*HueLight *huego.Bridge *sync.RWMutex // contains filtered or unexported fields }
Bridge represents a zigbee light controller. Just hue for now.
func GetControllers ¶
func GetControllers(bridges []config.KnownBridge) (br []*Bridge)
type Multiplex ¶
type Multiplex struct {
// contains filtered or unexported fields
}
Multiplex is all of the lights (all of the lights). I'll see myself out.
type ToggleMode ¶
type ToggleMode uint8
const ( ToggleOn ToggleMode = iota ToggleOff ToggleRainbow Toggle )
Click to show internal directories.
Click to hide internal directories.