Versions in this module Expand all Collapse all v0 v0.9.0 Sep 2, 2023 v0.8.0 May 6, 2023 v0.7.3 Apr 20, 2023 v0.7.2 May 14, 2022 v0.7.1 May 4, 2022 v0.7.0 Mar 13, 2022 v0.6.0 Dec 1, 2021 v0.5.1 Jul 7, 2021 v0.5.0 Jun 18, 2021 v0.4.0 Apr 15, 2021 v0.3.0 Mar 21, 2021 v0.2.0 Mar 18, 2021 v0.1.6 Mar 12, 2021 v0.1.5 Feb 25, 2021 v0.1.4 Feb 23, 2021 v0.1.3 Feb 18, 2021 v0.1.2 Sep 30, 2020 v0.1.1 Sep 20, 2020 v0.1.0 Sep 17, 2020 Changes in this version + const PersistentTaskIdOffset + func Blink(brights []uint8, magnitude int) []uint8 + func FixError(lightId int, rawResponse []byte, err error) error + func Restore(ctxt Context, lightColors LightColors) error + type AtTimeTask struct + H *HueTask + Id string + Ls lights.Set + StartTime time.Time + type ColorBrightness struct + Brightness maybe.Uint8 + Color gohue.MaybeColor + type Context interface + Set func(lightId int, properties *gohue.LightProperties) (response []byte, err error) + type HueAction interface + Do func(ctxt Context, lightSet lights.Set, e *tasks.Execution) + UsedLights func(lightSet lights.Set) lights.Set + type HueTask struct + Description string + Id int + func (h *HueTask) GetDescription() string + func (h *HueTask) Refresh() *HueTask + type HueTaskList []*HueTask + type LightColors map[int]ColorBrightness + func Snapshot(reader LightReader, lightSet lights.Set) (LightColors, error) + type LightReader interface + Get func(lightId int) (*gohue.LightProperties, []byte, error) + type NamedColors struct + Colors LightColors + Description string + Id int64 + func (nc *NamedColors) AsHueTask() *HueTask + type StaticHueAction LightColors + func (a StaticHueAction) Do(ctxt Context, lightSet lights.Set, e *tasks.Execution) + func (a StaticHueAction) UsedLights(lightSet lights.Set) lights.Set