Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LightToDeviceState ¶
func SensorToDeviceState ¶
Types ¶
type Light ¶
type Light struct { Etag string `json:"etag"` Hascolor bool `json:"hascolor"` Manufacturer string `json:"manufacturer"` Modelid string `json:"modelid"` Name string `json:"name"` State devices.State //Pointsymbol struct { //} `json:"pointsymbol"` //State struct { //Alert string `json:"alert"` //Bri int `json:"bri"` //Colormode string `json:"colormode"` //Ct int `json:"ct"` //Effect string `json:"effect"` //Hue int `json:"hue"` //On bool `json:"on"` //Reachable bool `json:"reachable"` //Sat int `json:"sat"` //Xy []float64 `json:"xy"` //} `json:"state"` Swversion string `json:"swversion"` Type string `json:"type"` Uniqueid string `json:"uniqueid"` }
Light is a deconz RESP api light.
type Sensor ¶
type Sensor struct { Config devices.State `json:"config"` Ep int `json:"ep"` Manufacturername string `json:"manufacturername"` Modelid string `json:"modelid"` Name string `json:"name"` State devices.State `json:"state"` Type string `json:"type"` UniqueID string `json:"uniqueid"` ID string `json:"id"` }
func (Sensor) GenerateDevice ¶
type Sensors ¶
{ "config": { "battery": 100, "offset": 0, "on": true, "reachable": true }, "ep": 1, "etag": "1f0d135e4c7bc074090166ea9fbac900", "manufacturername": "LUMI", "modelid": "lumi.sensor_ht", "name": "Humidity 4", "state": { "humidity": 2056, "lastupdated": "2019-01-20T20:14:18" }, "type": "ZHAHumidity", "uniqueid": "00:15:8d:00:02:3d:26:5e-01-0405" }
Lights is a list of Light's.
func NewSensors ¶
func NewSensors() Sensors
Click to show internal directories.
Click to hide internal directories.