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

Graywind shade: add compatible zemismart device, and fault code

Compatible zemismart BCM500DS-TYW model, has additional dp 12 for fault code
and dp 3 for current position, but isn't reported, so isn't useful.

Issue #1852
Jason Rumney 1 год назад
Родитель
Сommit
61b349d066
1 измененных файлов с 20 добавлено и 0 удалено
  1. 20 0
      custom_components/tuya_local/devices/graywind_shades.yaml

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

@@ -2,6 +2,8 @@ name: Window shade
 products:
   - id: hldq12vsaqalcfer
     name: Graywind hardwired blackout
+  - id: f6jujmx0is5td50x
+    name: Zemismart BCM500DS-TYW
 primary_entity:
   entity: cover
   class: shade
@@ -36,3 +38,21 @@ secondary_entities:
             value: Forward
           - dps_val: back
             value: Back
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 12
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: null
+            value: false
+          - dps_val: 0
+            value: false
+          - value: true
+    - id: 12
+      type: bitfield
+      optional: true
+      name: fault_code