Explorar el Código

V330L pet feeder: add missing dps

- Add camera
- Add additional attributes for non-useful data.

Issue #2027
Jason Rumney hace 1 año
padre
commit
0f713d2502
Se han modificado 3 ficheros con 44 adiciones y 1 borrados
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 42 1
      custom_components/tuya_local/devices/v330l_petfeeder.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -575,3 +575,4 @@ Further device support has been made with the assistance of users. Please consid
 - [gy6221](https://github.com/gy6221) for contributing improvements to Atorch SW1P switches.
 - [opolczer](https://github.com/opolczer) for assisting with support for KY 35W-10 shutter controllers and Fisher air to water heat pump.
 - [jannisan](https://github.com/jannisan) for contributing support for Divoo DWV010 dual water timers.
+- [pergolafabio](https://github.com/pergolafabio) for contributing support for V330 pet feeders.

+ 1 - 0
DEVICES.md

@@ -648,6 +648,7 @@ port and password.
 - Petoneer Fresco Hydrate Ultra pet fountain/
 - PNI water feeder
 - Rojeco PTM-001 pet feeder (two versions)
+- V330L pet feeder
 - YP pet feeder
 
 ### Remote controllers

+ 42 - 1
custom_components/tuya_local/devices/v330l_petfeeder.yaml

@@ -17,6 +17,32 @@ primary_entity:
       range:
         min: 0
         max: 10
+    - id: 202
+      type: integer
+      name: food_weight
+      optional: true
+      mapping:
+        - scale: 10
+    - id: 203
+      type: integer
+      name: control
+      optional: true
+    - id: 204
+      type: integer
+      name: realtime_data
+      optional: true
+    - id: 205
+      type: integer
+      name: weight
+      optional: true
+    - id: 207
+      type: string
+      name: schedule
+      optional: true
+    - id: 208
+      type: string
+      name: voice_record
+      optional: true
 secondary_entities:
   - entity: light
     translation_key: indicator
@@ -120,6 +146,21 @@ secondary_entities:
         name: sensor
         optional: true
         mapping:
-          - dps_val: 3
+          - dps_val: 4
             value: true
           - value: false
+  - entity: camera
+    dps:
+      - id: 113
+        type: boolean
+        optional: true
+        name: record
+        mapping:
+          - dps_val: null
+            value: false
+            hidden: true
+      - id: 115
+        type: base64
+        name: snapshot
+        optional: true
+        sensitive: true