Robert Campo 1 год назад
Родитель
Сommit
5107cd2dca
1 измененных файлов с 37 добавлено и 17 удалено
  1. 37 17
      custom_components/tuya_local/devices/zemismart_roller_shade_zm25r2.yaml

+ 37 - 17
custom_components/tuya_local/devices/zemismart_roller_shade_zm25r2.yaml

@@ -35,15 +35,6 @@ primary_entity:
         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
@@ -68,17 +59,25 @@ primary_entity:
           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: select
+    name: Mode
+    icon: "mdi:theme-light-dark"
+    category: config
+    dps:
+      - id: 4
+        name: option
+        type: string
+        optional: true
+        mapping:
+          - dps_val: morning
+            value: Morning
+          - dps_val: night
+            value: Night
   - entity: binary_sensor
     class: problem
     category: diagnostic
@@ -86,13 +85,35 @@ secondary_entities:
       - id: 12
         type: bitfield
         name: sensor
+        optional: true
         mapping:
           - dps_val: 0
             value: false
           - dps_val: null
             value: false
           - value: true
-        optional: true
+  - entity: sensor
+    name: Travel time
+    icon: "mdi:hourglass"
+    category: diagnostic
+    dps:
+      - id: 10
+        name: sensor
+        type: integer
+        unit: ms
+  - entity: select
+    name: Click Control
+    icon: "mdi:theme-light-dark"
+    category: config
+    dps:
+      - id: 20
+        name: option
+        type: string
+        mapping:
+          - dps_val: continuous
+            value: continuous
+          - dps_val: Intermittently
+            value: Intermittently
   - entity: button
     name: Remote pairing
     icon: "mdi:remote"
@@ -101,4 +122,3 @@ secondary_entities:
       - id: 101
         type: boolean
         name: button
-        optional: true