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

fix(doel_tiplus_litterbox.yaml): correct DPS mappings and add missing entities

- Bin full DPS: 103 → 119
- Remove non-existing DPS 123 "Capacity calibration"
- Add DPS 130 "Sand surface calibration" (0–6)
- Fix schema: DPS 129 uses class=measurement (unit: min)
- Align DP names 128/129 to device codes (time, time_clear)
- Add missing entities: Developer mode (135), Sleep mode (120),
  Thin feces detection (127), Bag change mode (138), Bag change count (139)
- Updated icons for Daily visits and Daily visits duration to avoid duplication with Thin feces detection (127)
valdenny 5 месяцев назад
Родитель
Сommit
dbf62ae011
1 измененных файлов с 50 добавлено и 18 удалено
  1. 50 18
      custom_components/tuya_local/devices/doel_tiplus_litterbox.yaml

+ 50 - 18
custom_components/tuya_local/devices/doel_tiplus_litterbox.yaml

@@ -29,7 +29,7 @@ entities:
           - scale: 10
   - entity: sensor
     name: Daily visits
-    icon: "mdi:emoticon-poop"
+    icon: "mdi:paper-roll"
     dps:
       - id: 7
         type: integer
@@ -37,7 +37,7 @@ entities:
         unit: visits
   - entity: sensor
     name: Daily visits duration
-    icon: "mdi:paper-roll"
+    icon: "mdi:timer-sand"
     class: duration
     dps:
       - id: 8
@@ -77,7 +77,7 @@ entities:
     name: Bin full
     icon: "mdi:trash-can"
     dps:
-      - id: 103
+      - id: 119
         type: boolean
         name: sensor
   - entity: binary_sensor
@@ -143,16 +143,16 @@ entities:
         type: boolean
         name: sensor
   - entity: number
-    name: Capacity calibration
+    name: Sand surface calibration
     category: config
-    icon: "mdi:trash-can"
+    icon: "mdi:scale-balance"
     dps:
-      - id: 123
+      - id: 130
         type: integer
         name: value
         range:
           min: 0
-          max: 15
+          max: 6
   - entity: number
     name: Detection sensitivity
     category: config
@@ -199,21 +199,14 @@ entities:
       - id: 24
         type: string
         name: sensor
-      - id: 120
-        type: boolean
-        name: unknown_120
-      - id: 127
-        type: boolean
-        name: soft_mode
       - id: 128
         type: boolean
-        name: unknown_128
+        name: time
       - id: 129
         type: integer
-        name: unknown_129
-      - id: 135
-        type: boolean
-        name: dp_developer_mode
+        name: time_clear
+        class: measurement
+        unit: min
   - entity: select
     name: Litter type
     category: config
@@ -227,3 +220,42 @@ entities:
             value: "Mineral"
           - dps_val: "mixed_cat_litter"
             value: "Mixed"
+  - entity: switch
+    name: Developer mode
+    category: config
+    icon: "mdi:cog"
+    dps:
+      - id: 135
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Sleep mode
+    category: config
+    icon: "mdi:sleep"
+    dps:
+      - id: 120
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Thin feces detection
+    category: config
+    icon: "mdi:emoticon-poop"
+    dps:
+      - id: 127
+        type: boolean
+        name: switch
+  - entity: button
+    name: Bag change mode
+    icon: "mdi:bag-personal"
+    dps:
+      - id: 138
+        type: boolean
+        name: button
+  - entity: sensor
+    name: Bag change count
+    icon: "mdi:counter"
+    dps:
+      - id: 139
+        type: integer
+        name: sensor
+        unit: uses