Browse Source

Update inkbird_ibt_26s_thermometer.yaml

Added Bluetooth & Battery state Sensor & Small adjustments
nima1102 1 year ago
parent
commit
9c311ca0c2
1 changed files with 49 additions and 11 deletions
  1. 49 11
      custom_components/tuya_local/devices/inkbird_ibt_26s_thermometer.yaml

+ 49 - 11
custom_components/tuya_local/devices/inkbird_ibt_26s_thermometer.yaml

@@ -85,7 +85,6 @@ secondary_entities:
         name: sensor
         unit: C
         class: measurement
-
   - entity: select
     translation_key: temperature_unit
     category: config
@@ -99,6 +98,7 @@ secondary_entities:
           - dps_val: C
             value: celsius
   - entity: sensor
+    name: Battery level
     class: battery
     category: diagnostic
     dps:
@@ -106,6 +106,41 @@ secondary_entities:
         type: integer
         name: sensor
         unit: "%"
+  - entity: binary_sensor
+    name: Battery state
+    category: diagnostic
+    class: battery_charging
+    dps:
+      - id: 128
+        type: boolean
+        name: sensor
+        mapping:
+          - dps_val: 4624
+            value: 0
+          - dps_val: 4628
+            value: 1
+          - dps_val: 2576
+            value: 0
+          - dps_val: 2580
+            value: 1
+  - entity: binary_sensor
+    name: Bluetooth
+    icon: mdi:bluetooth
+    category: diagnostic
+    class: connectivity
+    dps:
+      - id: 128
+        type: boolean
+        name: sensor
+        mapping:
+          - dps_val: 4624
+            value: false
+          - dps_val: 4628
+            value: false
+          - dps_val: 2576
+            value: true
+          - dps_val: 2580
+            value: true
   - entity: number
     name: Screen Brightness
     category: config
@@ -116,7 +151,7 @@ secondary_entities:
         name: value
         unit: '%'
         range:
-          min: 0
+          min: 5
           max: 100
   - entity: switch
     name: Alarm Sound
@@ -125,14 +160,6 @@ secondary_entities:
       - id: 104
         type: boolean
         name: switch
-  - entity: sensor
-    name: Status Code
-    category: diagnostic
-    dps:
-      - id: 128
-        type: integer
-        name: sensor
-
   - entity: number
     name: Calibration Probe 1
     category: config
@@ -205,7 +232,6 @@ secondary_entities:
         range:
           min: -126
           max: 126
-
   - entity: select
     name: Alarm Probe 1
     category: diagnostic
@@ -220,6 +246,8 @@ secondary_entities:
             value: "On"
           - dps_val: "AKoFAAAKBw=="
             value: "Off"
+          - dps_val: null
+            value: "Off"
   - entity: select
     name: Alarm Probe 2
     category: diagnostic
@@ -234,6 +262,8 @@ secondary_entities:
             value: "On"
           - dps_val: "AKoFAAAKBw=="
             value: "Off"
+          - dps_val: null
+            value: "Off"
   - entity: select
     name: Alarm Probe 3
     category: diagnostic
@@ -248,6 +278,8 @@ secondary_entities:
             value: "On"
           - dps_val: "AKoFAAAKBw=="
             value: "Off"
+          - dps_val: null
+            value: "Off"
   - entity: select
     name: Alarm Probe 4
     category: diagnostic
@@ -262,6 +294,8 @@ secondary_entities:
             value: "On"
           - dps_val: "AKoFAAAKBw=="
             value: "Off"
+          - dps_val: null
+            value: "Off"
   - entity: select
     name: Alarm Probe 5
     category: diagnostic
@@ -276,6 +310,8 @@ secondary_entities:
             value: "On"
           - dps_val: "AKoFAAAKBw=="
             value: "Off"
+          - dps_val: null
+            value: "Off"
   - entity: select
     name: Alarm Probe Oven
     category: diagnostic
@@ -290,3 +326,5 @@ secondary_entities:
             value: "On"
           - dps_val: "AKoFAAAKBw=="
             value: "Off"
+          - dps_val: null
+            value: "Off"