mirror of
https://github.com/gosticks/go-hue-interface.git
synced 2025-10-16 11:45:35 +00:00
add light level for api 1.28 support
This commit is contained in:
parent
521d044b57
commit
a5fe5e1feb
15
groups.go
15
groups.go
@ -62,7 +62,7 @@ type Group struct {
|
|||||||
Class string `json:"class,omitempty"`
|
Class string `json:"class,omitempty"`
|
||||||
Action LightState `json:"action"`
|
Action LightState `json:"action"`
|
||||||
Presence *GroupPresence `json:"presence,omitempty"`
|
Presence *GroupPresence `json:"presence,omitempty"`
|
||||||
// Lightlevel..
|
LightLevel *GroupLightLevel `json:"lightlevel,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GroupPresence only exists if sensors array contains a presence sensor of type “ZLLPresence”, “CLIPPresence” or “Geofence”. This object contains a state object which contains the aggregated state of the sensors
|
// GroupPresence only exists if sensors array contains a presence sensor of type “ZLLPresence”, “CLIPPresence” or “Geofence”. This object contains a state object which contains the aggregated state of the sensors
|
||||||
@ -73,6 +73,19 @@ type GroupPresence struct {
|
|||||||
PresenceAll bool `json:"presence_all"`
|
PresenceAll bool `json:"presence_all"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GroupLightLevel light level struct
|
||||||
|
type GroupLightLevel struct {
|
||||||
|
// State?
|
||||||
|
LastUpdated Time `json:"lastupdated"`
|
||||||
|
Dark bool `json:"dark"`
|
||||||
|
DarkAll bool `json:"dark_all"`
|
||||||
|
Daylight bool `json:"daylight"`
|
||||||
|
DaylightAny bool `json:"daylight_any"`
|
||||||
|
Level int `json:"lightlevel"`
|
||||||
|
LevelMin int `json:"lightlevel_min"`
|
||||||
|
LevelMax int `json:"lightlevel_max"`
|
||||||
|
}
|
||||||
|
|
||||||
// GroupCreateResponse is returned after a create group request
|
// GroupCreateResponse is returned after a create group request
|
||||||
type GroupCreateResponse struct {
|
type GroupCreateResponse struct {
|
||||||
Success struct {
|
Success struct {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user