瀏覽代碼

feat (loonas_curtain): improve compatibility

Make position optional, to improve compatibility with an unknown
matching curtain motor. Add its product id, in case the dps returned
are even more erratic, so at least it still matches in cloud assisted setup.

Issue #3872
Jason Rumney 4 月之前
父節點
當前提交
8f722166f6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      custom_components/tuya_local/devices/loonas_curtain.yaml

+ 3 - 0
custom_components/tuya_local/devices/loonas_curtain.yaml

@@ -10,6 +10,8 @@ products:
   - id: dpqsvdbi
   - id: dpqsvdbi
     manufacturer: Miju
     manufacturer: Miju
     model: CM82
     model: CM82
+  - id: paxwqamvmc4hpebp
+    name: Curtain motor
 entities:
 entities:
   - entity: cover
   - entity: cover
     class: curtain
     class: curtain
@@ -28,6 +30,7 @@ entities:
       - id: 2
       - id: 2
         name: position
         name: position
         type: integer
         type: integer
+        optional: true
         range:
         range:
           min: 0
           min: 0
           max: 100
           max: 100