-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathapp.json
177 lines (177 loc) · 3.89 KB
/
app.json
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"id": "com.robot.xiaomi-mi",
"name": {
"en": "Xiaomi Mi Robot Vacuum Cleaner",
"nl": "Xiaomi Mi Robot Stofzuiger"
},
"version": "1.0.0",
"compatibility": "0.x || 1.x",
"author": {
"name": "Jelger Haanstra",
"email": "[email protected]"
},
"images": {
"large": "./assets/images/large.jpg",
"small": "./assets/images/small.jpg"
},
"category": "appliances",
"description": {
"en": "Control your Xiaomi Mi Robot Vacuum Cleaner",
"nl": "Bestuur je Xiaomi Mi Robot Stofzuiger"
},
"dependencies": {
"net": "*"
},
"drivers": [
{
"id": "mi-robot",
"name": {
"en": "Mi Robot Vacuum Cleaner",
"nl": "Mi Robot Stofzuiger"
},
"images": {
"large": "drivers/mi-robot/assets/images/large.jpg",
"small": "drivers/mi-robot/assets/images/small.jpg"
},
"class": "other",
"capabilities": [],
"pair": [
{
"id": "start"
}
],
"settings": [
{
"type": "group",
"label": {
"en": "Mi Robot settings",
"nl": "Mi Robot instellingen"
},
"children": [
{
"id": "address",
"type": "text",
"value": "0.0.0.0",
"label": {
"en": "IP Address",
"nl": "IP Adres"
}
},
{
"id": "start",
"type": "text",
"value": "",
"label": {
"en": "HEX value to start Mi Robot",
"nl": "HEX waarde om Mi Robot te starten"
}
},
{
"id": "pause",
"type": "text",
"value": "",
"label": {
"en": "HEX value to pause Mi Robot",
"nl": "HEX waarde om Mi Robot te pauzeren"
}
},
{
"id": "home",
"type": "text",
"value": "",
"label": {
"en": "HEX value to send Mi Robot home",
"nl": "HEX waarde om Mi Robot naar huis te sturen"
}
},
{
"id": "find",
"type": "text",
"value": "",
"label": {
"en": "HEX value to find Mi Robot",
"nl": "HEX waarde om Mi Robot te vinden"
}
}
]
}
]
}
],
"flow": {
"actions": [
{
"id": "startCleaning",
"title": {
"en": "Start vacuum cleaning",
"nl": "Start stofzuigen"
},
"args": [
{
"name": "device",
"type": "device",
"placeholder": {
"en": "Select Mi Robot",
"nl": "Selecteer Mi Robot"
},
"filter": "driver_id=mi-robot"
}
]
},
{
"id": "stopCleaning",
"title": {
"en": "Stop vacuum cleaning",
"nl": "Stop stofzuigen"
},
"args": [
{
"name": "device",
"type": "device",
"placeholder": {
"en": "Select Mi Robot",
"nl": "Selecteer Mi Robot"
},
"filter": "driver_id=mi-robot"
}
]
},
{
"id": "goHomeMiRobot",
"title": {
"en": "Send Mi Robot home",
"nl": "Stuur Mi Robot naar huis"
},
"args": [
{
"name": "device",
"type": "device",
"placeholder": {
"en": "Select Mi Robot",
"nl": "Selecteer Mi Robot"
},
"filter": "driver_id=mi-robot"
}
]
},
{
"id": "findMiRobot",
"title": {
"en": "Find Mi Robot",
"nl": "Vind Mi Robot"
},
"args": [
{
"name": "device",
"type": "device",
"placeholder": {
"en": "Select Mi Robot",
"nl": "Selecteer Mi Robot"
},
"filter": "driver_id=mi-robot"
}
]
}
]
}
}