Răsfoiți Sursa

Add RESTMO BT Water Meter configuration (#4560)

dp 102 (unit display) is not modeled. Although the physical device has a
button to toggle the display between L and gal, the device always
transmits data in litres (L) regardless of the display setting, so this
dp provides no useful information.
Perry Myers 5 zile în urmă
părinte
comite
8b46e9dad3

+ 35 - 0
custom_components/tuya_local/devices/restmo_fml026a_water_meter.yaml

@@ -0,0 +1,35 @@
+name: Water meter
+products:
+  - id: mqqna0px
+    manufacturer: Restmo
+    model: FML026A
+entities:
+  - entity: sensor
+    class: water
+    dps:
+      - id: 107
+        name: sensor
+        type: integer
+        unit: L
+        class: total_increasing
+        mapping:
+          - scale: 10
+  - entity: sensor
+    class: volume_flow_rate
+    dps:
+      - id: 5
+        name: sensor
+        type: integer
+        unit: L/min
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 4
+        name: sensor
+        type: integer
+        unit: "%"
+        class: measurement