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

Catit Pixi 6-meal: documentation and config tweaks.

Issue #614
Jason Rumney 2 лет назад
Родитель
Сommit
822f26a121
3 измененных файлов с 10 добавлено и 19 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 1
      DEVICES.md
  3. 8 18
      custom_components/tuya_local/devices/catit_pixi_6meal_feeder.yaml

+ 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.
 - [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.
+- [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
 - 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)
 - KKMoon 7in1 air quality monitor
 - Kogan bidet toilet seat

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

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