Răsfoiți Sursa

V330L pet feeder: keep manual feed available

- default manual feed to 0 rather than letting it go unavailable
- update product details
- add raw attribute to Food empty for monitoring

Issue #2947
Jason Rumney 1 an în urmă
părinte
comite
0a70dab6b1
1 a modificat fișierele cu 12 adăugiri și 2 ștergeri
  1. 12 2
      custom_components/tuya_local/devices/v330l_petfeeder.yaml

+ 12 - 2
custom_components/tuya_local/devices/v330l_petfeeder.yaml

@@ -1,9 +1,11 @@
 name: Pet feeder
 products:
   - id: ibnk6keua0zzc2gr
-    model: V330
+    model: V330L
+    model_id: V330L_AF3V_223A
   - id: cjrm04np59ut4pwb
-    model: V330L-DU4L-VS
+    model: V330L
+    model_id: V330L-DU4L-VS
     # Needs to be added using the 3.2 protocol
 entities:
   - entity: number
@@ -19,6 +21,10 @@ entities:
         range:
           min: 0
           max: 10
+        mapping:
+          - dps_val: null
+            value: 0
+            hidden: true
       - id: 202
         type: integer
         name: food_weight
@@ -124,6 +130,10 @@ entities:
           - dps_val: 1
             value: true
           - value: false
+      - id: 206
+        type: bitfield
+        name: raw
+        optional: true
   - entity: binary_sensor
     name: Not enough food
     class: problem