event listeners working

This commit is contained in:
Sam Lewis
2022-10-19 00:25:15 -04:00
parent ccd6805d40
commit 83789184f0
8 changed files with 278 additions and 60 deletions

25
types.go Normal file
View File

@@ -0,0 +1,25 @@
package gomeassistant
import "time"
type EventZWaveJSValueNotification struct {
EventType string `yaml:"event_type"`
Data struct {
Domain string `yaml:"domain"`
NodeID int `yaml:"node_id"`
HomeID int64 `yaml:"home_id"`
Endpoint int `yaml:"endpoint"`
DeviceID string `yaml:"device_id"`
CommandClass int `yaml:"command_class"`
CommandClassName string `yaml:"command_class_name"`
Label string `yaml:"label"`
Property string `yaml:"property"`
PropertyName string `yaml:"property_name"`
PropertyKey string `yaml:"property_key"`
PropertyKeyName string `yaml:"property_key_name"`
Value string `yaml:"value"`
ValueRaw int `yaml:"value_raw"`
} `yaml:"data"`
Origin string `yaml:"origin"`
TimeFired time.Time `yaml:"time_fired"`
}