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

Add support for HoneyGuardian S56 pet feeder

Issue #1670
Jason Rumney 1 год назад
Родитель
Сommit
6dcb0a48e0

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -517,3 +517,4 @@ Further device support has been made with the assistance of users. Please consid
 - [afallows](https://github.com/afallows) for contributing support for MoistenLand water timers.
 - [popokio](https://github.com/popokio) for assisting with support for Plikc Neve X RFW thermostats.
 - [popeen](https://github.com/popeen) for contributing support for Silvercrest Coffee makers.
+- [ciotorcristian](https://github.com/ciotorcristian) for contributing support for HoneyGuardian S56 pet feeder.

+ 1 - 0
DEVICES.md

@@ -596,6 +596,7 @@ port and password.
 - Catit Pixi smart fountain
 - Catit pet feeder (Pixi 2.2kg dispenser and 6 meal versions, and another non-Pixi branded single dispenser)
 - Ceres Plus pet feeder with camera
+- HoneyGuardian S56 pet feeder
 - Nedis pet feeder
 - Petlibro PLAF103 pet feeder
 - Petlibro PLAF203 pet feeder with camera

+ 104 - 0
custom_components/tuya_local/devices/honeyguardian_s56_petfeeder.yaml

@@ -0,0 +1,104 @@
+name: Pet feeder
+products:
+  - id: wa8pwmxwnhpujmdq
+    name: HoneyGuardian S56
+primary_entity:
+  entity: number
+  category: config
+  icon: "mdi:food-drumstick"
+  name: Manual feed
+  dps:
+    - id: 3
+      type: integer
+      name: value
+      range:
+        min: 1
+        max: 6
+    - id: 1
+      type: string
+      name: plan
+      optional: true
+secondary_entities:
+  - entity: switch
+    category: config
+    name: Slow feeding
+    dps:
+      - id: 6
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: false
+            icon: "mdi:play"
+          - dps_val: true
+            icon: "mdi:fast-forward"
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 14
+        type: bitfield
+        name: sensor
+        optional: true
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 14
+        type: bitfield
+        name: fault_code
+        optional: true
+  - entity: number
+    category: config
+    icon: "mdi:account-voice"
+    name: Voice activations
+    dps:
+      - id: 18
+        type: integer
+        name: value
+        range:
+          min: 1
+          max: 10
+  - entity: sensor
+    category: diagnostic
+    icon: "mdi:record-rec"
+    name: Meal log
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        range:
+          min: 1
+          max: 48
+  - entity: select
+    category: config
+    name: Clock
+    dps:
+      - id: 102
+        type: boolean
+        name: option
+        mapping:
+          - dps_val: false
+            value: 12 hour
+            icon: "mdi:hours-12"
+          - dps_val: true
+            value: 24 hour
+            icon: "mdi:hours-24"
+  - entity: sensor
+    category: diagnostic
+    class: battery
+    dps:
+      - id: 103
+        type: string
+        name: sensor
+        unit: "%"
+        mapping:
+          - dps_val: empty
+            value: 10
+          - dps_val: low
+            value: 40
+          - dps_val: high
+            value: 70
+          - dps_val: full
+            value: 100