Bladeren bron

Add support for Rojeco pet feeder.

Issue #585
Jason Rumney 2 jaren geleden
bovenliggende
commit
0c3e12b64f

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -231,3 +231,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Die-Meester](https://github.com/Die-Meester) for contributing support for CBI Astute smart switches.
 - [ResteNarquois](https://github.com/ResteNarquois) for assisting with support for Zemismart roller shades.
 - [grangoni](https://github.com/grangoni) for contributing support for PH-W218 water quality monitors.
+- [antonio1475](https://github.com/antonio1475) for contributing support for Rojeco pet feeders.

+ 1 - 0
DEVICES.md

@@ -345,6 +345,7 @@ of device.
 - Nedis WIFISA10CWT air quality monitor
 - PGST PA-010 indoor temperature and humidity sensor
 - PH-W218 water quality monitor
+- Rojeco PTM-001 pet feeder
 - Qoto 03 smart water valve / sprinkler controller
 - SD123 HPR01 human presence radar
 - Universal remote control (supports sensors only)

+ 82 - 0
custom_components/tuya_local/devices/rojeco_pet_feeder.yaml

@@ -0,0 +1,82 @@
+name: Pet feeder
+product:
+  - id: hbiwalfrzqfzv2cq
+    name: Rojeco PTM-001 
+primary_entity:
+  entity: button
+  icon: "mdi:food-drumstick"
+  name: Quick feed
+  dps:
+    - id: 2
+      type: boolean
+      name: button
+    - id: 13
+      type: bitfield
+      name: fault_code
+secondary_entities:
+  - entity: sensor
+    icon: "mdi:paw"
+    name: Last amount
+    category: diagnostic
+    dps:
+      - id: 14
+        name: sensor
+        type: integer
+        unit: portions
+  - entity: sensor
+    category: diagnostic
+    name: Feed state
+    icon: "mdi:valve"
+    class: enum
+    dps:
+      - id: 4
+        name: sensor
+        type: string
+        mapping:
+          - dps_val: standby
+            value: Standby
+          - dps_val: feeding
+            value: Feeding
+          - dps_val: done
+            value: Done
+  - entity: number
+    name: Manual Feed
+    category: config
+    icon: "mdi:paw"
+    dps:
+      - id: 3
+        type: integer
+        name: value
+        unit: portions
+        range:
+          min: 1
+          max: 60
+  - entity: switch
+    name: Slow Feed
+    category: config
+    icon: "mdi:speedometer-slow"
+    dps:
+      - id: 23
+        type: boolean
+        name: switch
+  - entity: light
+    icon: "mdi:alarm-light"
+    name: Indicator
+    category: config
+    dps:
+      - id: 17
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Empty food
+    icon: "mdi:seed-off-outline"
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 13
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 2
+            value: true
+          - value: false

+ 1 - 1
custom_components/tuya_local/manifest.json

@@ -9,5 +9,5 @@
     "iot_class": "local_push",
     "issue_tracker": "https://github.com/make-all/tuya-local/issues",
     "requirements": ["pycryptodome~=3.17","tinytuya==1.12.2"],
-    "version": "2022.4.0"
+    "version": "2022.4.1"
 }