Skip to content

Commit

Permalink
Add support for Kanchou pet fountain
Browse files Browse the repository at this point in the history
Issue #2836
  • Loading branch information
make-all committed Feb 6, 2025
1 parent abc955d commit 334f6f5
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- [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.
- [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.
- [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.
Expand Down
1 change: 1 addition & 0 deletions DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@ port and password.
- HoneyGuardian S56 pet feeder
- iLonda L88 fish feeder
- iPettie W5 pet feeder
- Kanchou pet fountain
- Leo's Loo Too pet toilet
- Littepets MA2 series Cute Baby cat litter box
- LSC Smart Connect pet feeder
Expand Down
161 changes: 161 additions & 0 deletions custom_components/tuya_local/devices/kanchou_petfountain.yaml
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 74 in custom_components/tuya_local/devices/kanchou_petfountain.yaml

View workflow job for this annotation

GitHub Actions / lint

74:16 [trailing-spaces] trailing spaces
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

0 comments on commit 334f6f5

Please sign in to comment.