Browse Source

feat(frizzlife_lp365p_watermonitorandshutdoff): add compatible product id

- make dp 119 optional
- dps 115-117 are actually strings, but listing them as enums would bloat the config
  so let them remain taking advantage of the loose acceptance of string integers.

Issue #6023
Jason Rumney 1 tháng trước cách đây
mục cha
commit
2a9a7e2d3a

+ 5 - 1
custom_components/tuya_local/devices/frizzlife_lp365p_watermonitorandshutdoff.yaml

@@ -3,6 +3,9 @@ products:
   - id: 89tojzdfimssmkuk
   - id: 89tojzdfimssmkuk
     manufacturer: Frizzlife
     manufacturer: Frizzlife
     model: LP365P
     model: LP365P
+  - id: db423wsytutyipot
+    manufacturer: Frizzlife
+    model: LP365P
 entities:
 entities:
   # Valve
   # Valve
   - entity: valve
   - entity: valve
@@ -326,7 +329,7 @@ entities:
             step: 100
             step: 100
             value_redirect: mode6_val
             value_redirect: mode6_val
       - id: 115
       - id: 115
-        type: integer
+        type: string
         name: mode4_val
         name: mode4_val
         range:
         range:
           min: 0
           min: 0
@@ -405,6 +408,7 @@ entities:
     dps:
     dps:
       - id: 119
       - id: 119
         type: integer
         type: integer
+        optional: true
         name: value
         name: value
         range:
         range:
           min: 0
           min: 0