hue

package
v0.0.0-...-4bf1f59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hue

type Hue struct {
	Host     string
	Username string
}

func (*Hue) GetLights

func (h *Hue) GetLights() (lights []*Light, err error)

func (*Hue) GetLightsById

func (h *Hue) GetLightsById(lightIds []string) (lights []*Light, err error)

func (*Hue) Register

func (h *Hue) Register() (err error)

type Light

type Light struct {
	Id          string
	UniqueId    string
	Name        string
	Type        string
	State       bool
	Reachable   bool
	Alert       string
	Effect      string
	Mode        string
	Brightness  int
	Hue         int
	Saturation  int
	ColorX      float64
	ColorY      float64
	Temperature int
	// contains filtered or unexported fields
}

func (*Light) ColorLoop

func (l *Light) ColorLoop()

func (*Light) Commit

func (l *Light) Commit() (err error)

func (*Light) Copy

func (l *Light) Copy() (light *Light)

func (*Light) NoColorLoop

func (l *Light) NoColorLoop()

func (*Light) Off

func (l *Light) Off()

func (*Light) On

func (l *Light) On()

func (*Light) Print

func (l *Light) Print()

func (*Light) SetBrightness

func (l *Light) SetBrightness(brightness int)

func (*Light) SetColorHex

func (l *Light) SetColorHex(color string) (err error)

func (*Light) SetColorXY

func (l *Light) SetColorXY(colorX, colorY float64) (err error)

func (*Light) SetState

func (l *Light) SetState(state bool)

func (*Light) SetTransition

func (l *Light) SetTransition(transition time.Duration)

func (*Light) Switch

func (l *Light) Switch()

func (*Light) Update

func (l *Light) Update() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL