1+ {
2+ "$schema" : " http://json-schema.org/draft-04/schema#" ,
3+ "title" : " Deebot model" ,
4+ "description" : " Describe a deebot model" ,
5+ "type" : " object" ,
6+ "required" : [" name" , " class" , " protocol" ],
7+ "properties" : {
8+ "name" : {
9+ "type" : " string" ,
10+ "description" : " Name of the model" ,
11+ "minLength" : 1
12+ },
13+ "class" : {
14+ "type" : " string" ,
15+ "description" : " Class of the model" ,
16+ "minLength" : 1
17+ },
18+ "protocol" : {
19+ "enum" : [" mqtt/json" , " mqtt/xml" , " xmpp" ],
20+ "type" : " string" ,
21+ "description" : " Protocol used by the robot"
22+ },
23+ "components" : {
24+ "type" : " array" ,
25+ "uniqueItems" : true ,
26+ "items" : {
27+ "type" : " string" ,
28+ "enum" : [" main_brush" , " side_brush" , " filter" ],
29+ "options" : {
30+ "enum_titles" : [" Main brush" , " Side brush" , " Filter" ]
31+ }
32+ },
33+ "description" : " Available components" ,
34+ "title" : " Components"
35+ },
36+ "features" : {
37+ "type" : " array" ,
38+ "uniqueItems" : true ,
39+ "title" : " Features" ,
40+ "description" : " Avialable features" ,
41+ "items" : {
42+ "type" : " string" ,
43+ "enum" : [
44+ " advanced_mode" ,
45+ " mop_reminder" ,
46+ " carpet_auto_fan_speed_boost" ,
47+ " continuous_cleaning" ,
48+ " do_not_disturb" ,
49+ " cleaning_schedule" ,
50+ " voice_report"
51+ ],
52+ "options" : {
53+ "enum_titles" : [
54+ " Advanced mode" ,
55+ " Mop reminder" ,
56+ " Carpet auto fan speed boost" ,
57+ " Continuous cleaning" ,
58+ " Do not disturb" ,
59+ " Cleaning schedule" ,
60+ " Voice report/volume"
61+ ]
62+ }
63+ }
64+ },
65+ "cleaning_modes" : {
66+ "type" : " array" ,
67+ "uniqueItems" : true ,
68+ "description" : " Available cleaning types" ,
69+ "items" : {
70+ "enum" : [" spot_area" , " custom_area" ],
71+ "type" : " string"
72+ },
73+ "title" : " Cleaning modes"
74+ },
75+ "water_levels" : {
76+ "type" : " array" ,
77+ "uniqueItems" : true ,
78+ "title" : " Water level" ,
79+ "description" : " Avialable water levels" ,
80+ "items" : {
81+ "type" : " string" ,
82+ "enum" : [" low" , " medium" , " high" , " ultra_high" ],
83+ "options" : {
84+ "enum_titles" : [" Low" , " Medium" , " High" , " Ultra high" ]
85+ }
86+ }
87+ },
88+ "fan_speeds" : {
89+ "title" : " Fan speed" ,
90+ "type" : " array" ,
91+ "description" : " Available fan speeds" ,
92+ "items" : {
93+ "type" : " string" ,
94+ "enum" : [" quiet" , " standard" , " max" , " max+" ],
95+ "options" : {
96+ "enum_titles" : [" Quiet" , " Standard" , " Max" , " Max+" ]
97+ }
98+ },
99+ "uniqueItems" : true
100+ }
101+ }
102+ }
0 commit comments