Przeglądaj źródła

Add support for Cat litter MINI-B-Public (#3922)

* Add minib_public_litterbox.yaml

* Remove manufacturer from minib_public_litterbox.yaml

Removed manufacturer information for the litter box, instead use the default when unknown.

---------

Co-authored-by: Anton Motruk <anton.mmotruk@tui.co.uk>
Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
amotruk 3 miesięcy temu
rodzic
commit
9fa8a0b21b

+ 169 - 0
custom_components/tuya_local/devices/minib_public_litterbox.yaml

@@ -0,0 +1,169 @@
+name: Litter box
+
+products:
+  - id: "93at0k76rfvteseb"
+    model: MINI-B-Public
+
+entities:
+  - entity: switch
+    name: Power
+    icon: "mdi:power"
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+
+  - entity: select
+    name: Mode
+    icon: "mdi:robot-vacuum"
+    dps:
+      - id: 2
+        type: string
+        name: option
+        mapping:
+          - dps_val: auto_clean
+            value: Auto clean
+          - dps_val: manual_clean
+            value: Manual clean
+
+  - entity: button
+    name: Empty
+    icon: "mdi:trash-can-outline"
+    dps:
+      - id: 3
+        type: boolean
+        name: button
+
+  - entity: number
+    name: Cleaning delay
+    category: config
+    translation_key: timer
+    class: duration
+    dps:
+      - id: 5
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 1
+          max: 60
+
+  - entity: sensor
+    class: weight
+    dps:
+      - id: 6
+        type: integer
+        name: sensor
+        unit: kg
+        optional: true
+        mapping:
+          - scale: 10
+        precision: 1
+
+  - entity: sensor
+    name: Times today
+    icon: "mdi:counter"
+    dps:
+      - id: 7
+        type: integer
+        name: sensor
+        optional: true
+
+  - entity: sensor
+    name: Toilet duration
+    class: duration
+    dps:
+      - id: 8
+        type: integer
+        name: sensor
+        unit: s
+        precision: 0
+        optional: true
+
+  - entity: button
+    name: Clean
+    icon: "mdi:broom"
+    dps:
+      - id: 9
+        type: boolean
+        name: button
+
+  - entity: button
+    name: Reset
+    category: config
+    dps:
+      - id: 23
+        type: boolean
+        name: button
+
+  - entity: sensor
+    name: Cleaning times
+    icon: "mdi:counter"
+    dps:
+      - id: 103
+        type: integer
+        name: sensor
+
+  - entity: light
+    translation_key: backlight
+    category: config
+    dps:
+      - id: 106
+        type: integer
+        name: brightness
+        range:
+          min: 0
+          max: 100
+
+  - entity: sensor
+    translation_key: status
+    class: enum
+    dps:
+      - id: 110
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: "Standby"
+            value: Standby
+          - dps_val: "Wait_Cluster"
+            value: Waiting for clustering
+          - dps_val: "Clean_Pause"
+            value: Cleaning paused
+          - dps_val: "Clean_Start"
+            value: Starting cleaning
+          - dps_val: "Cleaning"
+            value: Cleaning
+          - dps_val: "Empty_Pause"
+            value: Emptying paused
+          - dps_val: "Empty_Start"
+            value: Starting emptying
+          - dps_val: "Emptying"
+            value: Emptying
+          - dps_val: "Reset_Pause"
+            value: Reset paused
+          - dps_val: "Reset_Start"
+            value: Starting reset
+          - dps_val: "Resetting"
+            value: Resetting
+          - dps_val: "Abnormal"
+            value: Abnormal
+          - dps_val: "Reverse_rotation"
+            value: Reverse rotation
+          - dps_val: "Drawers_open"
+            value: Drawer open
+          - dps_val: "Cat_into"
+            value: Cat detected
+
+  - entity: select
+    name: Weight unit
+    icon: "mdi:weight-kilogram"
+    category: config
+    dps:
+      - id: 111
+        type: string
+        name: option
+        mapping:
+          - dps_val: "KG"
+            value: Kilograms
+          - dps_val: "LB"
+            value: Pounds