Просмотр исходного кода

Loonas curtain: make current_position optional

Move Zemismart BCM500DS product from Graywind to here, as position is
inverted.

Issue #1852
Jason Rumney 1 год назад
Родитель
Сommit
f83c6b3c8b

+ 0 - 2
custom_components/tuya_local/devices/graywind_shades.yaml

@@ -2,8 +2,6 @@ name: Window shade
 products:
   - id: hldq12vsaqalcfer
     name: Graywind hardwired blackout
-  - id: f6jujmx0is5td50x
-    name: Zemismart BCM500DS-TYW
 primary_entity:
   entity: cover
   class: shade

+ 9 - 5
custom_components/tuya_local/devices/loonas_curtain.yaml

@@ -1,6 +1,9 @@
-name: Loonas smart curtain
+name: Curtain
 products:
   - id: wraaecjqfiirj8go
+    name: Loonas curtain motor
+  - id: f6jujmx0is5td50x
+    name: Zemismart BCM500DS-TYW
 primary_entity:
   entity: cover
   class: curtain
@@ -27,15 +30,12 @@ primary_entity:
     - id: 3
       name: current_position
       type: integer
+      optional: true
       range:
         min: 0
         max: 100
       mapping:
         - invert: true
-    - id: 12
-      name: fault_code
-      type: bitfield
-      optional: true
 secondary_entities:
   - entity: switch
     name: Reverse
@@ -65,3 +65,7 @@ secondary_entities:
           - dps_val: null
             value: false
           - value: true
+      - id: 12
+        name: fault_code
+        type: bitfield
+        optional: true