Browse Source

Summary: Catit Pixi Smart: add optional feeding sensor on dp 4.

For otherwise compatible GiotoHun device.

PR #1178
Jason Rumney 2 years ago
parent
commit
f40a8aa011

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -387,3 +387,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [DocDrydenn](https://github.com/DocDrydenn) for assisting with support for Treatlife dual dimmer smartplugs.
 - [kbirger](https://github.com/kbirger) for contributing support for Reiga 52 ceiling fan with light.
 - [scottfridwin](https://github.com/scottfridwin) for contributing compatibility improvements to RGB LED strip for Novostella branded LED strips.
+- [lnx85](https://github.com/lnx85) for contributing support for GiotoHun pet feeder (merged with Catit Pixi Smart feeder).

+ 18 - 2
custom_components/tuya_local/devices/catit_pixi_smart_feeder.yaml

@@ -2,6 +2,8 @@ name: Pet feeder
 products:
   - id: 8vwr6rfoaaxncjwj
     name: Petoneer Nutri Mini
+  - id: pxwlmmdodfppms3a
+    name: GiotoHun Pet feeder
 primary_entity:
   entity: button
   name: Quick Feed
@@ -24,7 +26,6 @@ secondary_entities:
       - id: 15
         name: sensor
         type: integer
-        optional: false
   - entity: button
     class: restart
     name: Factory reset
@@ -45,7 +46,6 @@ secondary_entities:
         range:
           min: 1
           max: 12
-        optional: false
   - entity: binary_sensor
     name: Food shortage
     class: problem
@@ -72,3 +72,19 @@ secondary_entities:
           - dps_val: 4
             value: true
           - value: false
+  - entity: binary_sensor
+    name: Feeding
+    class: running
+    icon: "mdi:paw"
+    category: diagnostic
+    dps:
+      - id: 4
+        type: string
+        name: sensor
+        optional: true
+        mapping:
+          - dps_val: feeding
+            value: true
+          - dps_val: null
+            value: null
+          - value: false