multi

package
v0.0.0-...-167692a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2013 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiAPI

type MultiAPI struct {
	APIs []hue.API
}

func NewMultiAPI

func NewMultiAPI() *MultiAPI

func (*MultiAPI) AddAPI

func (m *MultiAPI) AddAPI(api hue.API)

func (*MultiAPI) GetLightAttributes

func (m *MultiAPI) GetLightAttributes(lightId string) (*hue.LightAttributes, error)

GetLightAttributes() is same as hue.User.GetLightAttributes() except all light ids are mapped to socket ids.

func (*MultiAPI) GetLights

func (m *MultiAPI) GetLights() ([]hue.Light, error)

GetLights() is same as hue.User.GetLights() except all light ids are mapped to socket ids.

func (*MultiAPI) GetNewLights

func (m *MultiAPI) GetNewLights() ([]hue.Light, time.Time, error)

GetNewLights() is same as hue.User.GetNewLights() except all light ids are mapped to socket ids.

func (*MultiAPI) SearchForNewLights

func (m *MultiAPI) SearchForNewLights() error

SearchForNewLights() is same as hue.User.SearchForNewLights() except all light ids are mapped to socket ids.

func (*MultiAPI) SetGroupState

func (m *MultiAPI) SetGroupState(groupId string, state *hue.LightState) error

SetGroupState() is same as hue.User.SetGroupState() except it is run across all apis in parallet and results are merged together.

func (*MultiAPI) SetLightName

func (m *MultiAPI) SetLightName(lightId string, name string) error

SetLightName() is same as hue.User.SetLightName() except all light ids are mapped to socket ids.

func (*MultiAPI) SetLightState

func (m *MultiAPI) SetLightState(lightId string, state *hue.LightState) error

SetLightState() is same as hue.User.SetLightState() expect the call is routed to the correct bridge based on the augmented id.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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