aboutsummaryrefslogtreecommitdiff
path: root/light.go
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-09-23 17:58:43 -0400
committerCollin Guarino <collin.guarino@gmail.com>2016-09-23 17:58:43 -0400
commit541bfc66cb1dd94c9ab4d7089adc0f31a77799d4 (patch)
treec4503b98f8c3b8283b79ede213c4e31d108f4762 /light.go
parent0b48413834389d48e4ce42b1d79157c5ca825ff5 (diff)
Fixed issue #1 invalid types for hue and saturation in LightState struct.
Diffstat (limited to 'light.go')
-rw-r--r--light.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/light.go b/light.go
index 0dd38db..fc1229e 100644
--- a/light.go
+++ b/light.go
@@ -20,8 +20,8 @@ type Light struct {
State struct {
On bool `json:"on"` // On or Off state of the light ("true" or "false")
Bri uint8 `json:"bri"` // Brightness value 1-254
- Hue int `json:"hue"` // Hue value 1-65535
- Saturation int `json:"sat"` // Saturation value 0-254
+ Hue uint16 `json:"hue"` // Hue value 1-65535
+ Saturation uint8 `json:"sat"` // Saturation value 0-254
Effect string `json:"effect"` // "None" or "Colorloop"
XY [2]float32 `json:"xy"` // Coordinates of color in CIE color space
CT int `json:"ct"` // Mired Color Temperature (google it)