Просмотр исходного кода

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 месяц назад
Родитель
Сommit
2a9a7e2d3a

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

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