daanjh 1 год назад
Родитель
Сommit
a3eba6fbb3
2 измененных файлов с 135 добавлено и 0 удалено
  1. 1 0
      DEVICES.md
  2. 134 0
      custom_components/tuya_local/devices/petree_cube_litter_box.yaml

+ 1 - 0
DEVICES.md

@@ -879,6 +879,7 @@ port and password.
 - Petoneer Fresco Hydrate Ultra pet fountain (2 versions)
 - Petoneer Fresco Mini pet fountain
 - Petoneer Nutri PF004 pet feeder
+- Petree 2.0 litter box
 - PetSnowy Snow+ litter box
 - Petrust TK-WF002 pet fountain
 - PNI water feeder

+ 134 - 0
custom_components/tuya_local/devices/petree_cube_litter_box.yaml

@@ -0,0 +1,134 @@
+name: Petree 2.0 Litter Box
+products:
+  - id: 1kufldu6g6l53rsy
+    manufacturer: Petree
+    model: Petree 2.0
+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
+    name: Delay Clean Time
+    category: config
+    optional: true
+    dps:
+      - id: 5
+        type: integer
+        name: value
+  - entity: switch
+    name: Indicator Light Switch
+    category: config
+    optional: true
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Sleep
+    category: config
+    optional: true
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+  - entity: button
+    name: Deodorization
+    category: config
+    optional: true
+    dps:
+      - id: 104
+        type: boolean
+        name: button
+  - entity: switch
+    name: Do Not Disturb
+    category: config
+    optional: true
+    dps:
+      - id: 105
+        type: boolean
+        name: switch
+  - entity: number
+    name: Do Not Disturb Start Time
+    category: config
+    optional: true
+    dps:
+      - id: 106
+        type: integer
+        name: value
+  - entity: number
+    name: Do Not Disturb End Time
+    category: config
+    optional: true
+    dps:
+      - id: 107
+        type: integer
+        name: value
+  - entity: switch
+    name: Beep
+    category: config
+    optional: true
+    dps:
+      - id: 108
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Notification Status
+    category: diagnostic
+    optional: true
+    dps:
+      - id: 111
+        type: bitfield
+        name: description
+        mapping:
+          - dps_val: 0
+            value: No pop-up box
+          - dps_val: 1
+            value: Trash can is full
+          - dps_val: 2
+            value: Trash can is not installed
+          - dps_val: 4
+            value: Cover is not installed
+          - dps_val: 8
+            value: Cat is approaching
+          - dps_val: 16
+            value: Cabin temperature is too high
+          - dps_val: 32
+            value: Self-check in progress
+  - entity: binary_sensor
+    name: Trash status
+    category: diagnostics
+    optional: true
+    dps:
+      - id: 112
+        type: boolean
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: Not full yet
+          - dps_val: 1
+            value: Full
+  - entity: sensor
+    name: Temperature
+    category: diagnostics
+    optional: true
+    dps:
+      - id: 121
+        type: integer
+        name: sensor
+        mapping:
+          - scale: 10
+  - entity: button
+    name: Reboot
+    category: config
+    dps:
+      - id: 125
+        type: boolean
+        name: button
+  - entity: button
+    name: Clean
+    category: config
+    dps:
+      - id: 126
+        type: boolean
+        name: button