Browse Source

Catit Pixi 6-meal: documentation and config tweaks.

Issue #614
Jason Rumney 2 years ago
parent
commit
822f26a121

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -237,3 +237,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [cataseven](https://github.com/cataseven) for contributing support for SM07-8 sprinkler controllers.
 - [cataseven](https://github.com/cataseven) for contributing support for SM07-8 sprinkler controllers.
 - [tientmit88](https://github.com/tientmit88) for contributing support for Moes motion sensor lights.
 - [tientmit88](https://github.com/tientmit88) for contributing support for Moes motion sensor lights.
 - [matteozamu](https://github.com/matteozamu) for assisting with support for LoraTap garage doors.
 - [matteozamu](https://github.com/matteozamu) for assisting with support for LoraTap garage doors.
+- [chemicalstorm](https://github.com/chemicalstorm) for contributing support for Catit pixi 6-meal pet feeder.

+ 1 - 1
DEVICES.md

@@ -340,7 +340,7 @@ of device.
 
 
 - Bresser smart 7-in-1 weather station
 - Bresser smart 7-in-1 weather station
 - Catit Pixi smart fountain
 - Catit Pixi smart fountain
-- Catit pet feeder (experimental)
+- Catit pet feeder (2.2kg dispenser and 6 meal versions)
 - Emax EM3378 Weather Station (selling as Hiper P1 and other rebrands)
 - Emax EM3378 Weather Station (selling as Hiper P1 and other rebrands)
 - KKMoon 7in1 air quality monitor
 - KKMoon 7in1 air quality monitor
 - Kogan bidet toilet seat
 - Kogan bidet toilet seat

+ 8 - 18
custom_components/tuya_local/devices/catit_pixi_6meal_feeder.yaml

@@ -3,29 +3,24 @@ product:
   - id: wmkepdif6qzirl7a
   - id: wmkepdif6qzirl7a
 primary_entity:
 primary_entity:
   entity: button
   entity: button
-  class: restart
   name: Quick Feed
   name: Quick Feed
   icon: "mdi:food-drumstick"
   icon: "mdi:food-drumstick"
   dps:
   dps:
     - id: 2
     - id: 2
       type: boolean
       type: boolean
       name: button
       name: button
-      optional: True
-secondary_entities:
-  - entity: sensor
-    name: Meal plan
-    dps:
-      - id: 1
-        name: sensor
+      optional: true
+    - id: 1
+      type: string
         # Meal plan is the following binary blob (1 byte per line), encoded in base64:
         # Meal plan is the following binary blob (1 byte per line), encoded in base64:
         # - Date (1 bit per day Monday -> Sunday, padded with 0 on the MSB). Ex: Monday, Wednesday, Sunday -> 0b01010001
         # - Date (1 bit per day Monday -> Sunday, padded with 0 on the MSB). Ex: Monday, Wednesday, Sunday -> 0b01010001
         # - Hour
         # - Hour
         # - Minute
         # - Minute
         # - Feed #
         # - Feed #
         # - Enable/Disabled
         # - Enable/Disabled
-        type: string
-        optional: True
-        readonly: True
+      name: meal_plan
+      optional: true
+secondary_entities:
   - entity: sensor
   - entity: sensor
     icon: "mdi:paw"
     icon: "mdi:paw"
     name: Feed report
     name: Feed report
@@ -37,8 +32,7 @@ secondary_entities:
         # 11: Feeding OK
         # 11: Feeding OK
         # 10/21: Rotating plate is stuck
         # 10/21: Rotating plate is stuck
         type: integer
         type: integer
-        readonly: True
-        optional: True
+        optional: true
   - entity: sensor
   - entity: sensor
     name: Battery
     name: Battery
     category: diagnostic
     category: diagnostic
@@ -47,7 +41,6 @@ secondary_entities:
         name: sensor
         name: sensor
         type: integer
         type: integer
         unit: "%"
         unit: "%"
-        readonly: True
   - entity: switch
   - entity: switch
     name: Voice configuration
     name: Voice configuration
     category: config
     category: config
@@ -55,9 +48,6 @@ secondary_entities:
       - id: 18
       - id: 18
         name: switch
         name: switch
         type: integer
         type: integer
-        range:
-          min: 0
-          max: 1
         mapping:
         mapping:
           - dps_val: 0
           - dps_val: 0
             value: false
             value: false
@@ -71,4 +61,4 @@ secondary_entities:
       - id: 9
       - id: 9
         type: boolean
         type: boolean
         name: button
         name: button
-        optional: True
+        optional: true