Parcourir la source

feat(devices): add Imipaw cat feeder

Issue #4647
Jason Rumney il y a 2 mois
Parent
commit
42cfd1df48

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -892,7 +892,7 @@ Further device support has been made with the assistance of users. Please consid
 - [KillDozerX2](https://github.com/KillDozerX2) for contributing support for Honeywell Air Touch P2 air purifier.
 - [Sapd](https://github.com/Sapd) for contributing support for Teknopoint Idra Skiv air conditioner.
 - [wuhgit](https://github.com/wuhgit) for contributing support for SC116-WZ3A camera.
-- [Airey001](https://github.com/Airey001) for contributing support for Neo-A Duoqu cat litter box, ComfortZone Powr Curve fan.
+- [Airey001](https://github.com/Airey001) for contributing support for Neo-A Duoqu cat litter box, ComfortZone Powr Curve fan, and assisting with support for Imipaw cat feeder.
 - [Akira97One](https://github.com/Akira97One) for assisting with support for SMCM DDV-207 Doorbell Pro camera.
 - [hemersonfds](https://github.com/hemersonfds) for assisting with support for EARU EAEMP3C energy monitoring breaker.
 - [jldg](https://github.com/jldg) for assisting with support for Lumary A1 ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -1115,6 +1115,7 @@ port and password.
 - Happy Llama Tech SoCool pet feeder
 - HoneyGuardian S56 pet feeder
 - iLonda L88 fish feeder
+- Imipaw DUW21 WBR3D cat feeder
 - iPettie W5 pet feeder
 - Kanchou pet fountain
 - Leo's Loo Too pet toilet

+ 103 - 0
custom_components/tuya_local/devices/imipaw_duw21wbr3d_petfeeder.yaml

@@ -0,0 +1,103 @@
+name: Cat feeder
+products:
+  - id: myhc7cokpdrb0uhx
+    manufacturer: Imipaw
+    model: DUW21 WBR3D
+entities:
+  - entity: text
+    translation_key: meal_plan
+    category: config
+    hidden: true
+    dps:
+      - id: 1
+        type: base64
+        optional: true
+        name: value
+  - entity: number
+    translation_key: manual_feed
+    dps:
+      - id: 3
+        type: integer
+        optional: true
+        name: value
+        unit: portions
+        range:
+          min: 1
+          max: 20
+  - entity: sensor
+    translation_key: status
+    class: enum
+    category: diagnostic
+    dps:
+      - id: 4
+        type: string
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: standby
+            value: standby
+          - dps_val: feeding
+            value: feeding
+          - dps_val: done
+            value: feeding_complete
+  - entity: sensor
+    class: battery
+    dps:
+      - id: 10
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: binary_sensor
+    class: battery_charging
+    category: diagnostic
+    dps:
+      - id: 11
+        type: boolean
+        optional: true
+        name: sensor
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 13
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 13
+        type: bitfield
+        name: fault_code
+  - entity: event
+    name: Feed report
+    dps:
+      - id: 14
+        type: integer
+        optional: true
+        name: event
+        mapping:
+          - dps_val: null
+            value: null
+          - dps_val: 0
+            value: null
+          - value: Fed
+      - id: 14
+        type: integer
+        optional: true
+        name: portions
+  - entity: button
+    translation_key: fanctory_reset
+    category: config
+    hidden: true
+    dps:
+      - id: 24
+        type: boolean
+        optional: true
+        name: button
+  - entity: switch
+    icon: "mdi:cat"
+    dps:
+      - id: 25
+        type: boolean
+        name: switch