Fix LoRaWan millis overflow (#24373)

- Fix lock/unlock icons
This commit is contained in:
Theo Arends
2026-04-06 12:54:13 +02:00
parent 62637ad16a
commit 0cb2de76d1
8 changed files with 17 additions and 14 deletions

View File

Binary file not shown.

View File

@@ -97,7 +97,7 @@ class LwDecoDW10
msg += "<tr class='htr'><td colspan='4'>&#9478;" # |
msg += string.format(" &#x2600;&#xFE0F; %.1f°C", temperature) # Sunshine - Temperature
msg += string.format(" &#x1F4A7; %.1f%%", humidity) # Raindrop - Humidity
msg += string.format(" %s %s", (door_open) ? "&#x1F513" : "&#x1F512", # Open or Closed lock - Door
msg += string.format(" %s %s", (door_open) ? "&#x1F513;" : "&#x1F512;", # Open or Closed lock - Door
fmt.dhm(door_open_last_seen))
msg += "{e}" # = </td></tr>
end

View File

@@ -82,7 +82,7 @@ class LwDecoLDS02
var door_open = sensor[6]
var door_open_last_seen = sensor[7]
msg += "<tr class='htr'><td colspan='4'>&#9478;" # |
msg += string.format(" %s %s", (door_open) ? "&#x1F513" : "&#x1F512", # Open or Closed lock - Door
msg += string.format(" %s %s", (door_open) ? "&#x1F513;" : "&#x1F512;", # Open or Closed lock - Door
fmt.dhm(door_open_last_seen))
msg += "{e}" # = </td></tr>
end

View File

@@ -195,7 +195,7 @@ class LwDecoLHT65
msg += string.format(" &#x2600;&#xFE0F; ext %.1f°C", temp_ext) # Sunshine - Temperature external
end
if door_open < 1000
msg += string.format(" %s %s", (door_open) ? "&#x1F513" : "&#x1F512", # Open or Closed lock - Door
msg += string.format(" %s %s", (door_open) ? "&#x1F513;" : "&#x1F512;", # Open or Closed lock - Door
fmt.dhm(door_open_last_seen))
end
msg += "{e}" # = </td></tr>

View File

@@ -1,5 +1,10 @@
# Changelog
[v26.4.6.0]
### Fixed
- GUI cache timer overflow
- Lock/Unlock icons
[v25.1.19.0]
### Changed
- LoRaWan End Device configuration Decoder File drop down box based on decoder files within `LoRaWan_Decoders.tapp` using function `path.listdir(<.tapp file>)` from Tasmota v15.2.0.3 before using the filelist (Theo Arends)

View File

@@ -1,18 +1,18 @@
autoexec.be
changelog.md
D20.be
DDS75L.be
DW10.be
filelist
LDS02.be
LHT52.be
LHT65.be
lorawan_decoders.be
manifest.json
PS-L-I5.be
SE01-L.be
SN50v3L.be
walker.be
WS202.be
WS301.be
WS522.be
autoexec.be
changelog.md
filelist
lorawan_decoders.be
manifest.json
walker.be

View File

@@ -615,9 +615,7 @@ class lorawan_decoders
Called every WebRefresh time
------------------------------------------------------------#
def web_sensor()
var current_time = tasmota.millis()
if current_time < self.cache_timeout
if !tasmota.time_reached(self.cache_timeout)
tasmota.web_send_decimal(self.web_msg_cache)
return
end
@@ -644,7 +642,7 @@ class lorawan_decoders
msg)
self.web_msg_cache = full_msg
self.cache_timeout = current_time + 5000
self.cache_timeout = tasmota.millis() + 5000
tasmota.web_send_decimal(full_msg)
end
end

View File

@@ -1,6 +1,6 @@
{
"name": "LoRaWan Decoders",
"version": "0x1A011300",
"version": "0x1A040600",
"description": "Decode LoRaWan devices",
"author": "Theo Arends",
"min_tasmota": "0x0E060001",