hue driver can set stuff now, I hope

This commit is contained in:
2022-12-29 16:31:30 +01:00
parent 6f8def066f
commit edbc576eed
9 changed files with 420 additions and 23 deletions
+7
View File
@@ -14,6 +14,13 @@ type State struct {
Color *color.Color `json:"color"`
}
func (s State) Empty() bool {
return s.Power == nil &&
s.Temperature == nil &&
s.Intensity == nil &&
s.Color == nil
}
func (s State) String() string {
parts := make([]string, 0, 4)
if s.Power != nil {