Documentation ¶
Index ¶
- type CLIPPresence
- type Daylight
- type Decoder
- type EmptyState
- type Event
- type EventError
- type EventErrorImpl
- type Reader
- type State
- type TypeLookuper
- type ZHACarbonMonoxide
- type ZHAFire
- type ZHAHumidity
- type ZHALightLevel
- type ZHAOpenClose
- type ZHAPresence
- type ZHAPressure
- type ZHASwitch
- type ZHATemperature
- type ZHAVibration
- type ZHAWater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIPPresence ¶
CLIPPresence represents a presence Sensor
func (*CLIPPresence) Fields ¶
func (z *CLIPPresence) Fields() map[string]interface{}
Fields returns timeseries data for influxdb
type Decoder ¶
type Decoder struct {
TypeStore TypeLookuper
}
Decoder is able to decode deCONZ events
type EmptyState ¶
type EmptyState struct{}
EmptyState is an empty struct used to indicate no state was parsed
type Event ¶
type Event struct { Type string `json:"t"` Event string `json:"e"` Resource string `json:"r"` ID int `json:"id,string"` RawState json.RawMessage `json:"state"` State interface{} }
Event represents a deconz sensor event
func (*Event) ParseState ¶
func (e *Event) ParseState(tl TypeLookuper) error
ParseState tries to unmarshal the appropriate state based on looking up the id though the TypeStore
type EventError ¶
type EventErrorImpl ¶
type EventErrorImpl struct {
// contains filtered or unexported fields
}
func (EventErrorImpl) Error ¶
func (e EventErrorImpl) Error() string
func (EventErrorImpl) Recoverable ¶
func (e EventErrorImpl) Recoverable() bool
type Reader ¶
type Reader struct { WebsocketAddr string TypeStore TypeLookuper // contains filtered or unexported fields }
Reader represents a deconz server device
type TypeLookuper ¶
TypeLookuper is the interface that we require to lookup types from id's
type ZHACarbonMonoxide ¶
ZHACarbonMonoxide represents a CarbonMonoxide Sensor
func (*ZHACarbonMonoxide) Fields ¶
func (z *ZHACarbonMonoxide) Fields() map[string]interface{}
Fields returns timeseries data for influxdb
type ZHAHumidity ¶
ZHAHumidity represents a presure change
func (*ZHAHumidity) Fields ¶
func (z *ZHAHumidity) Fields() map[string]interface{}
Fields returns timeseries data for influxdb
type ZHALightLevel ¶
ZHALightLevel represents a LightLevel Sensor
func (*ZHALightLevel) Fields ¶
func (z *ZHALightLevel) Fields() map[string]interface{}
Fields returns timeseries data for influxdb
type ZHAOpenClose ¶
ZHAVibration represents a Vibration Sensor
func (*ZHAOpenClose) Fields ¶
func (z *ZHAOpenClose) Fields() map[string]interface{}
Fields returns timeseries data for influxdb
type ZHAPresence ¶
ZHAPresence represents a presence Sensor
func (*ZHAPresence) Fields ¶
func (z *ZHAPresence) Fields() map[string]interface{}
Fields returns timeseries data for influxdb
type ZHAPressure ¶
ZHAPressure represents a presure change
func (*ZHAPressure) Fields ¶
func (z *ZHAPressure) Fields() map[string]interface{}
Fields returns timeseries data for influxdb
type ZHATemperature ¶
ZHATemperature represents a temperature change
func (*ZHATemperature) Fields ¶
func (z *ZHATemperature) Fields() map[string]interface{}
Fields returns timeseries data for influxdb
type ZHAVibration ¶
ZHAVibration represents a Vibration Sensor
func (*ZHAVibration) Fields ¶
func (z *ZHAVibration) Fields() map[string]interface{}
Fields returns timeseries data for influxdb