daanjh hai 1 ano
pai
achega
57c23e9333

+ 39 - 33
custom_components/tuya_local/devices/petree_cube_litter_box.yaml

@@ -1,4 +1,4 @@
-name: Petree 2.0 Litter Box
+name: Petree Litter Box
 products:
 products:
   - id: 1kufldu6g6l53rsy
   - id: 1kufldu6g6l53rsy
     manufacturer: Petree
     manufacturer: Petree
@@ -7,94 +7,95 @@ products:
     manufacturer: Petree
     manufacturer: Petree
     model: Petree 2.0
     model: Petree 2.0
 entities:
 entities:
-  # Omitted entities:
-  #   - 113 (Pedal angle): Too tedious and is not useful information.
-  #   - 118 ("empty"): Unclear documentation. Also shovel button exists.
-  #   - 124 ("clean"): Unclear documentation. Also shovel button exists.
   - entity: number
   - entity: number
-    name: Delay Clean Time
+    name: Delay clean time
     category: config
     category: config
-    optional: true
+    class: duration
     dps:
     dps:
       - id: 5
       - id: 5
         type: integer
         type: integer
         name: value
         name: value
-        unit: minute
+        unit: min
         range:
         range:
           min: 1
           min: 1
           max: 60
           max: 60
   - entity: switch
   - entity: switch
-    name: Indicator Light Switch
+    translation_key: indicator
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 102
       - id: 102
         type: boolean
         type: boolean
         name: switch
         name: switch
   - entity: switch
   - entity: switch
-    name: Sleep
+    translation_key: sleep
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 103
       - id: 103
         type: boolean
         type: boolean
         name: switch
         name: switch
   - entity: button
   - entity: button
-    name: Deodorization
+    name: Deodorize
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 104
       - id: 104
         type: boolean
         type: boolean
         name: button
         name: button
   - entity: switch
   - entity: switch
-    name: Do Not Disturb
+    name: Do not disturb
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 105
       - id: 105
         type: boolean
         type: boolean
         name: switch
         name: switch
+        optional: true
   - entity: number
   - entity: number
-    name: Do Not Disturb Start Time
+    name: Do not disturb start time
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 106
       - id: 106
         type: integer
         type: integer
         name: value
         name: value
-        unit: minute
+        optional: true
+        unit: min
         range:
         range:
           min: 0
           min: 0
           max: 1439
           max: 1439
   - entity: number
   - entity: number
-    name: Do Not Disturb End Time
+    name: Do not disturb end time
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 107
       - id: 107
         type: integer
         type: integer
         name: value
         name: value
-        unit: minute
+        optional: true
+        unit: min
         range:
         range:
           min: 0
           min: 0
           max: 1439
           max: 1439
   - entity: switch
   - entity: switch
     name: Beep
     name: Beep
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 108
       - id: 108
         type: boolean
         type: boolean
         name: switch
         name: switch
-  - entity: sensor
-    name: Notification Status
+  - entity: binary_sensor
+    class: problem
     category: diagnostic
     category: diagnostic
-    optional: true
     dps:
     dps:
       - id: 111
       - id: 111
         type: bitfield
         type: bitfield
         name: sensor
         name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 111
+        type: bitfield
+        name: fault_code
+      - id: 111
+        type: bitfield
+        name: description
         mapping:
         mapping:
           - dps_val: 0
           - dps_val: 0
             value: No pop-up box
             value: No pop-up box
@@ -112,21 +113,27 @@ entities:
             value: Self-check in progress
             value: Self-check in progress
   - entity: binary_sensor
   - entity: binary_sensor
     name: Trash status
     name: Trash status
+    translation_key: tank_full
     category: diagnostic
     category: diagnostic
-    optional: true
     dps:
     dps:
       - id: 112
       - id: 112
         type: boolean
         type: boolean
         name: sensor
         name: sensor
         mapping:
         mapping:
-          - dps_val: false
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 112
+        type: boolean
+        name: description
+        mapping:
+          - dps_val: 0
             value: Not full yet
             value: Not full yet
-          - dps_val: true
+          - dps_val: 1
             value: Full
             value: Full
   - entity: sensor
   - entity: sensor
-    name: Temperature
+    class: temperature
     category: diagnostic
     category: diagnostic
-    optional: true
     dps:
     dps:
       - id: 121
       - id: 121
         type: integer
         type: integer
@@ -135,9 +142,8 @@ entities:
         mapping:
         mapping:
           - scale: 10
           - scale: 10
   - entity: button
   - entity: button
-    name: Reboot
+    class: restart
     category: config
     category: config
-    optional: true
     dps:
     dps:
       - id: 125
       - id: 125
         type: boolean
         type: boolean