Example #1
0
func (a *Action) doOnOff(setter Setter, lights []int, e *tasks.Execution) {
	var properties gohue.LightProperties
	if a.On {
		properties.On.Set(true)
	} else if a.Off {
		properties.On.Set(false)
	}
	properties.C = a.C
	properties.Bri = a.Bri
	properties.TransitionTime = a.TransitionTime
	multiSet(e, setter, lights, &properties)
}