@@ -325,8 +325,23 @@ export const definitions: DefinitionWithExtend[] = [
325325 description : "Tubular motor" ,
326326 fromZigbee : [ legacy . fz . tuya_cover ] ,
327327 toZigbee : [ legacy . tz . tuya_cover_control , legacy . tz . tuya_cover_options , legacy . tz . tuya_data_point_test ] ,
328- exposes : [ e . cover_position ( ) . setAccess ( "position" , ea . STATE_SET ) ] ,
329- extend : [ m . forcePowerSource ( { powerSource : "Mains (single phase)" } ) ] ,
328+ exposes : [
329+ e . cover_position ( ) . setAccess ( "position" , ea . STATE_SET ) ,
330+ e . enum ( "upper_stroke_limit" , ea . STATE_SET , [ "SET" , "RESET" ] ) . withDescription ( "Set / Reset the upper stroke limit" ) . withCategory ( "config" ) ,
331+ e
332+ . enum ( "middle_stroke_limit" , ea . STATE_SET , [ "SET" , "RESET" ] )
333+ . withDescription ( "Set / Reset the middle stroke limit" )
334+ . withCategory ( "config" ) ,
335+ e . enum ( "lower_stroke_limit" , ea . STATE_SET , [ "SET" , "RESET" ] ) . withDescription ( "Set / Reset the lower stroke limit" ) . withCategory ( "config" ) ,
336+ ] ,
337+ extend : [ m . forcePowerSource ( { powerSource : "Mains (single phase)" } ) , tuya . modernExtend . tuyaBase ( { dp : true } ) ] ,
338+ meta : {
339+ tuyaDatapoints : [
340+ [ 103 , "upper_stroke_limit" , tuya . valueConverterBasic . lookup ( { SET : true , RESET : false } ) ] ,
341+ [ 104 , "middle_stroke_limit" , tuya . valueConverterBasic . lookup ( { SET : true , RESET : false } ) ] ,
342+ [ 105 , "lower_stroke_limit" , tuya . valueConverterBasic . lookup ( { SET : true , RESET : false } ) ] ,
343+ ] ,
344+ } ,
330345 } ,
331346 {
332347 fingerprint : tuya . fingerprint ( "TS0601" , [ "_TZE200_1n2kyphz" , "_TZE200_shkxsgis" , "_TZE204_shkxsgis" ] ) ,
0 commit comments