forked from jziolkowski/tdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetoptions.py
68 lines (68 loc) · 2.29 KB
/
setoptions.py
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
66
67
68
setoptions = {
"0": {
"description": "Save power state and use after restart",
"type": "select",
"parameters": {
"0": {"description": "Disabled"},
"1": {"description": "Enabled", "default": "True"},
},
},
"1": {
"description": "Set button multipress mode",
"type": "select",
"parameters": {
"0": {"description": "Disabled"},
"1": {"description": "Enabled", "default": "True"},
},
},
"11": {
"description": "Swap button single and double press functionality",
"type": "select",
"parameters": {
"0": {"description": "Disabled", "default": "True"},
"1": {"description": "Enabled"},
},
},
"13": {
"description": "Allow immediate action on single button press",
"type": "select",
"parameters": {
"0": {"description": "Single, multi-press and hold button actions", "default": "True"},
"1": {"description": "Only single press action for immediate response"},
},
},
"26": {
"description": "Use indexes even when only one relay is present",
"type": "select",
"parameters": {
"0": {"description": "Messages use POWER", "default": "True"},
"1": {"description": "Messages use POWER1"},
},
},
"32": {
"description": "Number of 0.1 seconds to hold button before sending HOLD action message",
"type": "value",
"parameters": {"min": "1", "max": "100", "default": "40"},
},
"40": {
"description": "Stop detecting any input change on the button GPIO [0.1s]",
"type": "value",
"parameters": {"min": "0", "max": "250", "default": "1"},
},
"61": {
"description": "Force local operation when ButtonTopic or SwitchTopic is set",
"type": "select",
"parameters": {
"0": {"description": "Disabled", "default": "True"},
"1": {"description": "Enabled"},
},
},
"63": {
"description": "Scan relay power feedback state at restart",
"type": "select",
"parameters": {
"0": {"description": "Enabled", "default": "True"},
"1": {"description": "Disabled"},
},
},
}