@@ -93,7 +93,21 @@ class Switchbot {
9393 model : {
9494 required : false ,
9595 type : "string" ,
96- enum : [ "H" , "T" , "e" , "s" , "d" , "c" , "u" , "g" , "j" , "o" , "i" , "r" , "x" ] ,
96+ enum : [
97+ "H" ,
98+ "T" ,
99+ "e" ,
100+ "s" ,
101+ "d" ,
102+ "c" ,
103+ "u" ,
104+ "g" ,
105+ "j" ,
106+ "o" ,
107+ "i" ,
108+ "r" ,
109+ "x" ,
110+ ] ,
97111 } ,
98112 id : { required : false , type : "string" , min : 12 , max : 17 } ,
99113 quick : { required : false , type : "boolean" } ,
@@ -230,6 +244,9 @@ class Switchbot {
230244 case "c" :
231245 device = new SwitchbotDeviceWoCurtain ( peripheral , this . noble ) ;
232246 break ;
247+ case "x" :
248+ device = new SwitchbotDeviceWoBlindTilt ( peripheral , this . noble ) ;
249+ break ;
233250 case "u" :
234251 device = new SwitchbotDeviceWoBulb ( peripheral , this . noble ) ;
235252 break ;
@@ -241,7 +258,7 @@ class Switchbot {
241258 device = new SwitchbotDeviceWoSmartLock ( peripheral , this . noble ) ;
242259 break ;
243260 case "i" :
244- device = new SwitchbotDeviceWoSensorTHPlus ( peripheral , this . noble ) ;
261+ device = new SwitchbotDeviceWoSensorTH ( peripheral , this . noble ) ;
245262 break ;
246263 case "r" :
247264 device = new SwitchbotDeviceWoStrip ( peripheral , this . noble ) ;
@@ -280,7 +297,7 @@ class Switchbot {
280297 *
281298 * [Arguments]
282299 * - params | Object | Optional |
283- * - model | String | Optional | "H", "T", "e", "s", "d", "c", "u", "g", "o", "i", or "r".
300+ * - model | String | Optional | "H", "T", "e", "s", "d", "c", "u", "g", "o", "i", "x", or "r".
284301 * | | | If "H" is specified, the `onadvertisement`
285302 * | | | event handler will be called only when advertising
286303 * | | | packets comes from Bots.
@@ -299,6 +316,9 @@ class Switchbot {
299316 * | | | If "c" is specified, the `onadvertisement`
300317 * | | | event handler will be called only when advertising
301318 * | | | packets comes from Curtains.
319+ * | | | If "x" is specified, the `onadvertisement`
320+ * | | | event handler will be called only when advertising
321+ * | | | packets comes from BlindTilt.
302322 * | | | If "u" is specified, the `onadvertisement`
303323 * | | | event handler will be called only when advertising
304324 * | | | packets comes from Color Bulb.
@@ -335,7 +355,7 @@ class Switchbot {
335355 model : {
336356 required : false ,
337357 type : "string" ,
338- enum : [ "H" , "T" , "e" , "s" , "d" , "c" , "u" , "g" , "j" , "o" , "i" , "r" ] ,
358+ enum : [ "H" , "T" , "e" , "s" , "d" , "c" , "u" , "g" , "j" , "o" , "i" , "r" , "x" ] ,
339359 } ,
340360 id : { required : false , type : "string" , min : 12 , max : 17 } ,
341361 } ,
0 commit comments