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

Add Li-ion chemistry decoding for Ostation 2 (#5543)

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Zsolt Prontvai 5 часов назад
Родитель
Сommit
d3efdf4b71

+ 8 - 0
custom_components/tuya_local/devices/olight_ostation_2_battery_charger.yaml

@@ -125,6 +125,8 @@ entities:
             value: Detecting
           - dps_val: 1
             value: Ni-MH
+          - dps_val: 2
+            value: Li-ion
   - entity: sensor
     class: battery
     name: AA slot 1 charge
@@ -240,6 +242,8 @@ entities:
             value: Detecting
           - dps_val: 1
             value: Ni-MH
+          - dps_val: 2
+            value: Li-ion
   - entity: sensor
     class: battery
     name: AA slot 2 charge
@@ -355,6 +359,8 @@ entities:
             value: Detecting
           - dps_val: 1
             value: Ni-MH
+          - dps_val: 2
+            value: Li-ion
   - entity: sensor
     class: battery
     name: AAA slot 1 charge
@@ -470,6 +476,8 @@ entities:
             value: Detecting
           - dps_val: 1
             value: Ni-MH
+          - dps_val: 2
+            value: Li-ion
   - entity: sensor
     class: battery
     name: AAA slot 2 charge