@@ -460,6 +460,61 @@ class TuyaMoesCover0601_alt_controls(TuyaWindowCover):
460
460
}
461
461
}
462
462
463
+ class TuyaMoesCover0601_alt_controls2 (TuyaWindowCover ):
464
+ """Tuya blind controller device."""
465
+
466
+ tuya_cover_command = {0x0000 : 0x0000 , 0x0001 : 0x0002 , 0x0002 : 0x0001 }
467
+ tuya_cover_inverted_by_default = True
468
+
469
+ signature = {
470
+ # "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0,
471
+ # user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>,
472
+ # mac_capability_flags=<MACCapabilityFlags.FullFunctionDevice|MainsPowered|RxOnWhenIdle|AllocateAddress: 142>,
473
+ # manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264,
474
+ # maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>,
475
+ # *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False,
476
+ # *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
477
+ # "endpoints": {
478
+ # "1": { "profile_id": 260, "device_type": "0x0051", "in_clusters": [ "0x0000", "0x0004","0x0005","0x0102","0xef00"], "out_clusters": ["0x000a","0x0019"] }
479
+ # },
480
+ # "manufacturer": "_TZE200_2odrmqwq",
481
+ # "model": "TS0601",
482
+ # "class": "zigpy.device.Device"
483
+ # }
484
+ MODELS_INFO : [
485
+ ("_TZE200_2odrmqwq" , "TS0601" ),
486
+ ],
487
+ ENDPOINTS : {
488
+ 1 : {
489
+ PROFILE_ID : zha .PROFILE_ID ,
490
+ DEVICE_TYPE : zha .DeviceType .SMART_PLUG ,
491
+ INPUT_CLUSTERS : [
492
+ Basic .cluster_id ,
493
+ Groups .cluster_id ,
494
+ Scenes .cluster_id ,
495
+ TuyaManufCluster .cluster_id ,
496
+ ],
497
+ OUTPUT_CLUSTERS : [Time .cluster_id , Ota .cluster_id ],
498
+ }
499
+ },
500
+ }
501
+
502
+ replacement = {
503
+ ENDPOINTS : {
504
+ 1 : {
505
+ DEVICE_TYPE : zha .DeviceType .WINDOW_COVERING_DEVICE ,
506
+ INPUT_CLUSTERS : [
507
+ Basic .cluster_id ,
508
+ Groups .cluster_id ,
509
+ Scenes .cluster_id ,
510
+ TuyaManufacturerWindowCover ,
511
+ TuyaWindowCoverControl ,
512
+ ],
513
+ OUTPUT_CLUSTERS : [Time .cluster_id , Ota .cluster_id ],
514
+ }
515
+ }
516
+ }
517
+
463
518
464
519
class TuyaMoesCover0601_inv_position (TuyaWindowCover ):
465
520
"""Tuya blind controller device."""
0 commit comments