forked from SirYaro/com.robot.xiaomi-mi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.json
150 lines (150 loc) · 3 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
{
"id": "com.robot.xiaomi-mi",
"name": {
"en": "Xiaomi Mi Robot Vacuum Cleaner",
"nl": "Xiaomi Mi Robot Stofzuiger"
},
"version": "2.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": "token",
"type": "text",
"value": "",
"label": {
"en": "Mi Robot Token",
"nl": "Mi Robot Token"
}
}
]
}
]
}
],
"flow": {
"actions": [
{
"id": "start",
"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": "pause",
"title": {
"en": "Pause vacuum cleaning",
"nl": "Pauzeer stofzuigen"
},
"args": [
{
"name": "device",
"type": "device",
"placeholder": {
"en": "Select Mi Robot",
"nl": "Selecteer Mi Robot"
},
"filter": "driver_id=mi-robot"
}
]
},
{
"id": "gohome",
"title": {
"en": "Send home",
"nl": "Stuur naar huis"
},
"args": [
{
"name": "device",
"type": "device",
"placeholder": {
"en": "Select Mi Robot",
"nl": "Selecteer Mi Robot"
},
"filter": "driver_id=mi-robot"
}
]
},
{
"id": "find",
"title": {
"en": "Find",
"nl": "Vind"
},
"args": [
{
"name": "device",
"type": "device",
"placeholder": {
"en": "Select Mi Robot",
"nl": "Selecteer Mi Robot"
},
"filter": "driver_id=mi-robot"
}
]
}
]
}
}