Florian Stamer 9 месяцев назад
Родитель
Сommit
d122d92bcb
1 измененных файлов с 18 добавлено и 1 удалено
  1. 18 1
      custom_components/tuya_local/devices/inkbird_ibs_m2.yaml

+ 18 - 1
custom_components/tuya_local/devices/inkbird_ibs_m2.yaml

@@ -26,11 +26,28 @@ entities:
         name: sensor
         unit: "C"
         class: measurement
-        endianness: little
+        offset: 1
+        length: 2
+        endianness: big
         mask: "FFFF"
         mapping:
           - scale: 10
 
+  - entity: sensor
+    name: Probe 1 Battery
+    class: battery
+    dps:
+      - id: 103
+        optional: true
+        type: base64
+        name: battery
+        unit: "%"
+        class: measurement
+        offset: 9
+        length: 1
+        mapping:
+          - scale: 1
+
   - entity: sensor
     name: Temperature probe 2
     class: temperature