mirror of
https://github.com/gosticks/go-hue-interface.git
synced 2025-10-16 11:45:35 +00:00
24 lines
620 B
Go
24 lines
620 B
Go
package main
|
|
|
|
// Light hue object
|
|
type Light struct {
|
|
State *LightState `json:"state"`
|
|
Type string `json:"type"`
|
|
Name string `json:"name"`
|
|
ModelID string `json:"modelid"`
|
|
SwVersion string `json:"swversion"`
|
|
}
|
|
|
|
// LightState is the hue light>state object
|
|
type LightState struct {
|
|
On bool `json:"on"`
|
|
BridgeID int `json:"bridgeid"`
|
|
Hue int `json:"hue"`
|
|
XY []int `json:"xy"`
|
|
Ct int `json:"ct"`
|
|
Alert string `json:"alert"`
|
|
Effect string `json:"effect"`
|
|
ColorMode string `json:"colormode"`
|
|
Reachable bool `json:"reachable"`
|
|
}
|