-
Notifications
You must be signed in to change notification settings - Fork 1
/
command.go
65 lines (61 loc) · 1.45 KB
/
command.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package kizcool
// CommandDefinition describes the fields of a Command
type CommandDefinition struct {
CommandName string `json:"commandName,omitempty"`
Nparams int `json:"nparams,omitempty"`
}
// Command describes a command (duh)
type Command struct {
Type int `json:"type,omitempty"`
Name string `json:"name,omitempty"`
Parameters interface{} `json:"parameters,omitempty"`
}
// CommandNames
const (
CmdClose = "close"
CmdDown = "down"
CmdIdentify = "identify"
CmdOff = "off"
CmdOn = "on"
CmdOpen = "open"
CmdSetIntensity = "setIntensity"
CmdSetClosure = "setClosure"
CmdStartIdentify = "startIdentify"
CmdStop = "stop"
CmdStopIdentify = "stopIdentify"
CmdUp = "up"
// "activateCalendar"
// "alarmOff"
// "alarmOn"
// "alarmPartial1"
// "alarmPartial2"
// "deactivateCalendar"
// "delayedStopIdentify"
// "getName"
// "my"
// "onWithTimer"
// "refreshAlarmDelay"
// "refreshBatteryStatus"
// "refreshCurrentAlarmMode"
// "refreshIntrusionDetected"
// "refreshMemorized1Position"
// "refreshPodMode"
// "refreshUpdateStatus"
// "setAlarmDelay"
// "setCalendar"
// "setCountryCode"
// "setDeployment"
// "setIntensityWithTimer"
// "setIntrusionDetected"
// "setLightingLedPodMode"
// "SetPosition"
// "setMemorized1Position"
// "setName"
// "setOnOff"
// "setPodLedOff"
// "setPodLedOn"
// "setSecuredPosition"
// "setTargetAlarmMode"
// "update"
// "wink"
)