Finn
054008eb1f
Connects to zwave-js, syncs all locks and codeslots with database, and records an event log. No support for updating code slots.
19 lines
455 B
Go
19 lines
455 B
Go
package zwavejs
|
|
|
|
type Command string
|
|
|
|
var (
|
|
InitializeCommand Command = "initialize"
|
|
StartListeningCommand Command = "start_listening"
|
|
)
|
|
|
|
type OutgoingMessage struct {
|
|
MessageID string `json:"messageId"`
|
|
Command Command `json:"command"`
|
|
}
|
|
|
|
type Initialize struct {
|
|
OutgoingMessage
|
|
SchemaVersion int `json:"schemaVersion"`
|
|
AdditionalUserAgentComponents map[string]string `json:"additionalUserAgentComponents"`
|
|
}
|