Documentation ¶
Index ¶
- type MultiAPI
- func (m *MultiAPI) AddAPI(api hue.API)
- func (m *MultiAPI) GetLightAttributes(lightId string) (*hue.LightAttributes, error)
- func (m *MultiAPI) GetLights() ([]hue.Light, error)
- func (m *MultiAPI) GetNewLights() ([]hue.Light, time.Time, error)
- func (m *MultiAPI) SearchForNewLights() error
- func (m *MultiAPI) SetGroupState(groupId string, state *hue.LightState) error
- func (m *MultiAPI) SetLightName(lightId string, name string) error
- func (m *MultiAPI) SetLightState(lightId string, state *hue.LightState) error
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) GetLightAttributes ¶
GetLightAttributes() is same as hue.User.GetLightAttributes() except all light ids are mapped to socket ids.
func (*MultiAPI) GetLights ¶
GetLights() is same as hue.User.GetLights() except all light ids are mapped to socket ids.
func (*MultiAPI) GetNewLights ¶
GetNewLights() is same as hue.User.GetNewLights() except all light ids are mapped to socket ids.
func (*MultiAPI) SearchForNewLights ¶
SearchForNewLights() is same as hue.User.SearchForNewLights() except all light ids are mapped to socket ids.
func (*MultiAPI) SetGroupState ¶
SetGroupState() is same as hue.User.SetGroupState() except it is run across all apis in parallet and results are merged together.
func (*MultiAPI) SetLightName ¶
SetLightName() is same as hue.User.SetLightName() except all light ids are mapped to socket ids.
func (*MultiAPI) SetLightState ¶
SetLightState() is same as hue.User.SetLightState() expect the call is routed to the correct bridge based on the augmented id.