diff --git a/tasmota/berry/lorawan/decoders/LwDecode.be b/tasmota/berry/lorawan/decoders/LwDecode.be index 684b8a0a6..a460f169b 100644 --- a/tasmota/berry/lorawan/decoders/LwDecode.be +++ b/tasmota/berry/lorawan/decoders/LwDecode.be @@ -98,6 +98,13 @@ class lwdecode_cls batt_percent /= 7 # 1..14px showing battery load msg += format("", battery, self.dhm(battery_last_seen), batt_percent, color_text) + elif battery >= 100000 && battery <= 100100 # battery already expressed in % + var pbatt = battery - 100000 + var batt_percent = pbatt + if batt_percent > 98 batt_percent = 98 end # 98% / 14px = 7 + batt_percent /= 7 # 1..14px showing battery load + msg += format("", + pbatt, self.dhm(battery_last_seen), batt_percent, color_text) else msg += " " end