Răsfoiți Sursa

Smartcurtain ACS WT: merge into identical Dooya curtain

Even the product ids were the same
Jason Rumney 1 an în urmă
părinte
comite
bd2a2072d0

+ 7 - 1
custom_components/tuya_local/devices/dooya_curtain.yaml

@@ -1,6 +1,8 @@
-name: Dooya curtain
+name: Curtain
+legacy_type: smartcurtain_acs_wt
 products:
   - id: spjpuwf1u2dc7tlt
+    name: SmartCurtain 3
 primary_entity:
   entity: cover
   class: curtain
@@ -29,9 +31,13 @@ secondary_entities:
     dps:
       - id: 103
         type: boolean
+        optional: true
         name: option
         mapping:
           - dps_val: false
             value: Forward
           - dps_val: true
             value: Reverse
+          - dps_val: null
+            value: Forward
+            hidden: true

+ 0 - 40
custom_components/tuya_local/devices/smartcurtain_acs_wt.yaml

@@ -1,40 +0,0 @@
-name: Curtain
-products:
-  - id: spjpuwf1u2dc7tlt
-    name: SmartCurtain 3
-primary_entity:
-  entity: cover
-  class: curtain
-  dps:
-    - id: 101
-      type: string
-      name: control
-      mapping:
-        - dps_val: open
-          value: open
-        - dps_val: close
-          value: close
-        - dps_val: stop
-          value: stop
-    - id: 102
-      type: integer
-      name: current_position
-    - id: 104
-      type: integer
-      name: position
-      range:
-        min: 0
-        max: 100
-secondary_entities:
-  - entity: switch
-    name: Reverse
-    category: config
-    dps:
-      - id: 103
-        type: boolean
-        optional: true
-        name: switch
-        mapping:
-          - dps_val: null
-            value: false
-            hidden: true