mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 07:15:09 -06:00
refactor: move event_types into types/ pkg, make methods public, small fixes
This commit is contained in:
29
types/event.go
Normal file
29
types/event.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package types
|
||||
|
||||
import "time"
|
||||
|
||||
type EventZWaveJSValueNotification struct {
|
||||
ID int `json:"id"`
|
||||
Type string `json:"type"`
|
||||
Event struct {
|
||||
EventType string `json:"event_type"`
|
||||
Data struct {
|
||||
Domain string `json:"domain"`
|
||||
NodeID int `json:"node_id"`
|
||||
HomeID int64 `json:"home_id"`
|
||||
Endpoint int `json:"endpoint"`
|
||||
DeviceID string `json:"device_id"`
|
||||
CommandClass int `json:"command_class"`
|
||||
CommandClassName string `json:"command_class_name"`
|
||||
Label string `json:"label"`
|
||||
Property string `json:"property"`
|
||||
PropertyName string `json:"property_name"`
|
||||
PropertyKey string `json:"property_key"`
|
||||
PropertyKeyName string `json:"property_key_name"`
|
||||
Value string `json:"value"`
|
||||
ValueRaw int `json:"value_raw"`
|
||||
} `json:"data"`
|
||||
Origin string `json:"origin"`
|
||||
TimeFired time.Time `json:"time_fired"`
|
||||
} `json:"event"`
|
||||
}
|
||||
Reference in New Issue
Block a user