2024-04-09 04:25:36 +00:00
|
|
|
package zwavejs
|
|
|
|
|
2024-04-09 23:18:43 +00:00
|
|
|
type CommandClass int
|
2024-04-09 04:25:36 +00:00
|
|
|
|
2024-04-09 23:18:43 +00:00
|
|
|
const (
|
|
|
|
CommandClassDoorLock CommandClass = 98
|
|
|
|
CommandClassUserCode CommandClass = 99
|
|
|
|
)
|
|
|
|
|
|
|
|
type CommandClassName string
|
|
|
|
|
|
|
|
const (
|
|
|
|
CommandClassNameUserCode CommandClassName = "User Code"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Property string
|
|
|
|
|
|
|
|
const (
|
|
|
|
PropertyUserCode Property = "userCode"
|
|
|
|
PropertyUserIDStatus Property = "userIdStatus"
|
|
|
|
)
|
|
|
|
|
|
|
|
type EventSource string
|
|
|
|
|
|
|
|
const (
|
|
|
|
EventSourceController EventSource = "controller"
|
|
|
|
EventSourceNode EventSource = "node"
|
|
|
|
)
|
|
|
|
|
|
|
|
type EventType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
EventTypeValueUpdated EventType = "value updated"
|
|
|
|
EventTypeStatisticsUpdated EventType = "statistics updated"
|
|
|
|
EventTypeNotification EventType = "notification"
|
|
|
|
)
|
2024-04-09 04:25:36 +00:00
|
|
|
|
2024-04-09 23:18:43 +00:00
|
|
|
type Command string
|
2024-04-09 04:25:36 +00:00
|
|
|
|
2024-04-09 23:18:43 +00:00
|
|
|
const (
|
|
|
|
CommandInitialize Command = "initialize"
|
|
|
|
CommandStartListening Command = "start_listening"
|
|
|
|
CommandNodeSetValue Command = "node.set_value"
|
2024-04-09 04:25:36 +00:00
|
|
|
)
|