Kaynağa Gözat

Add support for Nedis pet feeder.

Issue #379
Jason Rumney 3 yıl önce
ebeveyn
işleme
7102052a3d

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -171,3 +171,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [BeardedTinker](https://github.com/BeardedTinker) for assisting with support for SG600MD smart inverter.
 - [LeandroIssa](https://github.com/LeandroIssa) for contributing Brazilian Portuguese translations.
 - [YuriiMaiboroda](https://github.com/YuriiMaiboroda) for contributing Ukrainian translations.
+- [samios88](https://github.com/samios88) for assistance supporting Nedis pet feeders.

+ 2 - 1
DEVICES.md

@@ -254,7 +254,8 @@ generic configurations known to work with multiple brands of device.
 
 - Bresser smart 7-in-1 weather station
 - Catit Pixi smart fountain
+- Catit pet feeder (experimental)
+- Nedis pet feeder
 - Qoto 03 smart water valve / sprinkler controller
 - SD123 HPR01 human presence radar
 - Universal remote control (supports sensors only)
-- Catit pet feeder (experimental)

+ 120 - 0
custom_components/tuya_local/devices/nedis_pet_feeder.yaml

@@ -0,0 +1,120 @@
+name: Nedis Pet Feeder
+product:
+  - id: yxhdmalt36kbawev
+primary_entity:
+  entity: switch
+  name: Feeding
+  icon: "mdi:food-drumstick"
+  dps:
+    - id: 103
+      type: boolean
+      name: switch
+    - id: 102
+      type: bitfield
+      name: fault_code
+secondary_entities:
+  - entity: number
+    name: Timer feed
+    category: config
+    icon: "mdi:clock-outline"
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        unit: portions
+        range:
+          min: 0
+          max: 12
+  - entity: number
+    name: Express feed
+    category: config
+    icon: "mdi:clock-fast"
+    dps:
+      - id: 104
+        type: integer
+        name: value
+        unit: portions
+        range:
+          min: 0
+          max: 12
+  - entity: number
+    name: Manual amount
+    category: config
+    icon: "mdi:paw"
+    dps:
+      - id: 105
+        type: integer
+        name: value
+        unit: portions
+        range:
+          min: 0
+          max: 12
+  - entity: number
+    name: Weight
+    category: config
+    icon: "mdi:scale"
+    dps:
+      - id: 110
+        type: integer
+        name: value
+        unit: g
+        range:
+          min: 1
+          max: 255
+  - entity: switch
+    name: Voice switch
+    category: config
+    icon: "mdi:account-voice"
+    dps:
+      - id: 111
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 102
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: sensor
+    name: Manual feed
+    category: diagnostic
+    icon: "mdi:paw-outline"
+    dps:
+      - id: 106
+        type: integer
+        name: sensor
+        unit: portions
+  - entity: sensor
+    name: Express result
+    category: diagnostic
+    icon: "mdi:clock-fast"
+    dps:
+      - id: 107
+        type: integer
+        name: sensor
+        unit: portions
+  - entity: sensor
+    name: Timer result
+    category: diagnostic
+    icon: "mdi:clock-outline"
+    dps:
+      - id: 108
+        type: integer
+        name: sensor
+        unit: portions
+  - entity: sensor
+    name: History data
+    category: diagnostic
+    icon: "mdi:history"
+    dps:
+      - id: 109
+        type: integer
+        name: sensor
+
+