Explorar o código

Yueqing curtain motor: invert position

As is common with Tuya curtains, position is reverse of what HA expects

Issue #1781
Jason Rumney hai 1 ano
pai
achega
70fc93f9d3

+ 7 - 0
custom_components/tuya_local/devices/yueqingcombo_yet848pc_curtain.yaml

@@ -23,9 +23,16 @@ primary_entity:
       range:
       range:
         min: 0
         min: 0
         max: 100
         max: 100
+      mapping:
+        - invert: true
     - id: 3
     - id: 3
       name: current_position
       name: current_position
       type: integer
       type: integer
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - invert: true
 secondary_entities:
 secondary_entities:
   - entity: select
   - entity: select
     name: Motor direction
     name: Motor direction