github.com/amimof/huego@v1.2.1/sensor.go (about) 1 package huego 2 3 // Sensor represents a bridge sensor https://developers.meethue.com/documentation/sensors-api 4 type Sensor struct { 5 State map[string]interface{} `json:"state,omitempty"` 6 Config map[string]interface{} `json:"config,omitempty"` 7 Name string `json:"name,omitempty"` 8 Type string `json:"type,omitempty"` 9 ModelID string `json:"modelid,omitempty"` 10 ManufacturerName string `json:"manufacturername,omitempty"` 11 UniqueID string `json:"uniqueid,omitempty"` 12 SwVersion string `json:"swversion,omitempty"` 13 ID int `json:",omitempty"` 14 } 15 16 // NewSensor defines a list of sensors discovered the last time the bridge performed a sensor discovery. 17 // Also stores the timestamp the last time a discovery was performed. 18 type NewSensor struct { 19 Sensors []*Sensor 20 LastScan string `json:"lastscan"` 21 }