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

Add support for Kanchou pet fountain

Issue #2836
Jason Rumney 1 год назад
Родитель
Сommit
334f6f5838
3 измененных файлов с 163 добавлено и 1 удалено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 161 0
      custom_components/tuya_local/devices/kanchou_petfountain.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -808,7 +808,7 @@ Further device support has been made with the assistance of users. Please consid
 - [rackxp](https://github.com/rackxp) for assisting with support for Brilliant Smart twin flood lights with motion detection.
 - [rackxp](https://github.com/rackxp) for assisting with support for Brilliant Smart twin flood lights with motion detection.
 - [toxacj](https://github.com/toxacj) for assisting with support for C30W gas leak detector.
 - [toxacj](https://github.com/toxacj) for assisting with support for C30W gas leak detector.
 - [Ramon-E80](https://github.com/Ramon-E80) for assisting with support for Clean Air Optima CA-702 dehumidifier.
 - [Ramon-E80](https://github.com/Ramon-E80) for assisting with support for Clean Air Optima CA-702 dehumidifier.
-- [fate8383](https://github.com/fate8383) for assisting with support for Siguro AP-K50 purifier.
+- [fate8383](https://github.com/fate8383) for assisting with support for Siguro AP-K50 purifier and Kanchou pet fountain.
 - [szemkhel](https://github.com/szemkhel) for assisting with support for Protmex PT-19DW alarm clock with temperature and humidity monitor.
 - [szemkhel](https://github.com/szemkhel) for assisting with support for Protmex PT-19DW alarm clock with temperature and humidity monitor.
 - [dimis7](https://github.com/dimis7) for assisting with support for Inventor Rise Pro dehumidifier and contributing support for Rohnson SmartChef XL air fryer.
 - [dimis7](https://github.com/dimis7) for assisting with support for Inventor Rise Pro dehumidifier and contributing support for Rohnson SmartChef XL air fryer.
 - [Bryla2507](https://github.com/Bryla2507) for assisting with support for LSC dual band outdoor camera.
 - [Bryla2507](https://github.com/Bryla2507) for assisting with support for LSC dual band outdoor camera.

+ 1 - 0
DEVICES.md

@@ -856,6 +856,7 @@ port and password.
 - HoneyGuardian S56 pet feeder
 - HoneyGuardian S56 pet feeder
 - iLonda L88 fish feeder
 - iLonda L88 fish feeder
 - iPettie W5 pet feeder
 - iPettie W5 pet feeder
+- Kanchou pet fountain
 - Leo's Loo Too pet toilet
 - Leo's Loo Too pet toilet
 - Littepets MA2 series Cute Baby cat litter box
 - Littepets MA2 series Cute Baby cat litter box
 - LSC Smart Connect pet feeder
 - LSC Smart Connect pet feeder

+ 161 - 0
custom_components/tuya_local/devices/kanchou_petfountain.yaml

@@ -0,0 +1,161 @@
+name: Pet fountain
+products:
+  - id: akln8rb04cav403q
+    manufacturer: Kanchou
+entities:
+  - entity: switch
+    icon: "mdi:paw"
+    dps:
+      - id: 1
+        type: boolean
+        optional: true
+        name: switch
+  - entity: select
+    name: Mode
+    icon: "mdi:paw"
+    category: config
+    dps:
+      - id: 2
+        type: string
+        name: option
+        mapping:
+          - dps_val: normal
+            value: Normal
+          - dps_val: night
+            value: Night
+  - entity: sensor
+    name: Filter remaining
+    icon: "mdi:air-filter"
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 3
+        type: integer
+        name: sensor
+        unit: d
+        class: measurement
+  - entity: sensor
+    name: Pump cleaning due
+    icon: "mdi:pump"
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 4
+        type: integer
+        name: sensor
+        unit: d
+        class: measurement
+  - entity: button
+    translation_key: filter_reset
+    category: config
+    dps:
+      - id: 5
+        type: boolean
+        optional: true
+        name: button
+  - entity: button
+    name: Pump clean reset
+    icon: "mdi:pump"
+    category: config
+    dps:
+      - id: 6
+        type: boolean
+        optional: true
+        name: button
+  - entity: number
+    name: Filter change interval
+    category: config
+    icon: "mdi:air-filter"
+    dps:
+      - id: 7
+        type: integer
+        name: value
+        optional: true
+        unit: d 
+        range:
+          min: 0
+          max: 30
+  - entity: number
+    name: Pump clean interval
+    category: config
+    icon: "mdi:pump"
+    dps:
+      - id: 8
+        type: integer
+        optional: true
+        name: value
+        unit: d
+        range:
+          min: 0
+          max: 15
+  - entity: sensor
+    class: volume_storage
+    translation_key: water_level
+    dps:
+      - id: 102
+        type: integer
+        name: sensor
+        unit: mL
+        class: measurement
+      - id: 9
+        type: string
+        optional: true
+        name: status
+        mapping:
+          - dps_val: low
+            value: low
+          - dps_val: middle
+            value: medium
+          - dps_val: high
+            value: high
+      - id: 10
+        type: integer
+        optional: true
+        name: percent
+  - entity: sensor
+    class: volume
+    name: Water consumption
+    category: diagnostic
+    dps:
+      - id: 22
+        type: integer
+        name: sensor
+        unit: mL
+        class: measurement
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 23
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: 1
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 23
+        type: bitfield
+        optional: true
+        name: fault_code
+      - id: 23
+        type: bitfield
+        optional: true
+        name: description
+        mapping:
+          - dps_val: 0
+            value: ok
+          - dps_val: 1
+            value: tank_empty
+          - dps_val: 2
+            value: filter_used
+          - dps_val: 4
+            value: pump_dirty
+          - dps_val: 8
+            value: battery_low
+          - dps_val: 16
+            value: pump_blocked