Browse Source

zemismart zm25r2

Robert Campo 2 years ago
parent
commit
66f42e4e84
1 changed files with 102 additions and 0 deletions
  1. 102 0
      custom_components/tuya_local/devices/zemismart_shade_zm25r2.yaml

+ 102 - 0
custom_components/tuya_local/devices/zemismart_shade_zm25r2.yaml

@@ -0,0 +1,102 @@
+name: Zemismart Roller Shade - ZM25R2
+products:
+  - id: 8nuvcigdwbth6dj7
+    name: Zemismart ZM25R2
+primary_entity:
+  entity: cover
+  class: shade
+  dps:
+    - id: 1
+      name: control
+      type: string
+      mapping:
+        - dps_val: open
+          value: open
+        - dps_val: close
+          value: close
+        - dps_val: stop
+          value: stop
+        - dps_val: continue
+          value: continue
+    - id: 2
+      name: position
+      type: integer
+      optional: true
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - invert: true
+    - id: 3
+      name: current_position
+      type: integer
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - invert: true
+    - id: 4
+      name: mode
+      type: string
+      optional: true
+      mapping:
+        - dps_val: morning
+          value: morning
+        - dps_val: night
+          value: night
+    - id: 5
+      name: control_back
+      type: string
+      mapping:
+        - dps_val: forward
+          value: forward
+        - dps_val: back
+          value: back
+    - id: 7
+      name: unreliable_action
+      type: string
+      mapping:
+        - dps_val: opening
+          value: opening
+          constraint: current_position
+          conditions:
+            - dps_val: 0
+              value: opened
+        - dps_val: closing
+          value: closing
+          constraint: current_position
+          conditions:
+            - dps_val: 100
+              value: closed
+    - id: 10
+      name: time_total
+      type: integer
+      range:
+        min: 0
+        max: 120000
+    - id: 12
+      name: fault
+      type: bitfield
+      optional: true
+secondary_entities:
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 12
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+        optional: true
+  - entity: button
+    name: Remote pairing
+    icon: "mdi:remote"
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        name: button
+        optional: true