Przeglądaj źródła

feat(devices): add Rojeco PAF-186B 2L single pet feeder (#5422)

* feat(devices): add Rojeco PAF-186B 2L single pet feeder

Add device config for the Rojeco PAF-186B single-bowl pet feeder with
portion feed buttons, custom feed amount, and status reporting.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(devices): use manual_feed entity per review feedback

Remove individual portion feed buttons and use the standard manual_feed
number entity like other pet feeders in the integration.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Remove category fields from YAML entities

There should be some entities that are not config or diagnostic

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
eigger 1 dzień temu
rodzic
commit
45196d26d3

+ 59 - 0
custom_components/tuya_local/devices/rojeco_pet_feeder_paf186b_2l_single.yaml

@@ -0,0 +1,59 @@
+name: Pet feeder
+products:
+  - id: xatwi1ep0ntk551r
+    manufacturer: Rojeco
+    model: PAF-186B
+entities:
+  - entity: number
+    translation_key: manual_feed
+    dps:
+      - id: 3
+        type: integer
+        optional: true
+        name: value
+        unit: portions
+        range:
+          min: 1
+          max: 40
+  - entity: text
+    translation_key: meal_plan
+    category: config
+    hidden: true
+    dps:
+      - id: 1
+        type: base64
+        name: value
+        optional: true
+  - entity: sensor
+    translation_key: status
+    class: enum
+    icon: "mdi:paw"
+    dps:
+      - id: 4
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: standby
+            value: standby
+          - dps_val: feeding
+            value: feeding
+          - dps_val: done
+            value: feeding_complete
+  - entity: sensor
+    icon: "mdi:paw"
+    name: Feed report
+    category: diagnostic
+    dps:
+      - id: 15
+        name: sensor
+        type: integer
+        unit: portions
+  - entity: button
+    translation_key: factory_reset
+    category: config
+    hidden: true
+    dps:
+      - id: 9
+        type: boolean
+        optional: true
+        name: button