From e479eeff3db8debb1f7e9860fe636daf1fb98889 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 26 Sep 2025 15:37:51 +0200 Subject: [PATCH] Add headers to statedata_v4.be --- .../berry/examples/statedata/statedata_v4.be | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/tasmota/berry/examples/statedata/statedata_v4.be b/tasmota/berry/examples/statedata/statedata_v4.be index a03a22576..b0528ae4f 100644 --- a/tasmota/berry/examples/statedata/statedata_v4.be +++ b/tasmota/berry/examples/statedata/statedata_v4.be @@ -20,7 +20,6 @@ class mqttdata_cls var line_highlight # Highlight latest change duration var line_highlight_color # Latest change highlight color var line_lowuptime_color # Low uptime highlight color - var line_duration # Duration option var mqtt_state # MQTT tele STATE subscribe format var bool_devicename # Show device name var bool_version # Show version @@ -37,7 +36,6 @@ class mqttdata_cls self.line_highlight = 10 # Highlight latest change duration in seconds self.line_highlight_color = "yellow" # Latest change highlight HTML color like "#FFFF00" or "yellow" self.line_lowuptime_color = "lime" # Low uptime highlight HTML color like "#00FF00" or "lime" - self.line_duration = 0 # Show duration of last state message (1) self.mqtt_state = "" # MQTT tele STATE subscribe format self.bool_devicename = persist.std_devicename # Show device name self.bool_version = persist.std_version # Show version @@ -229,6 +227,21 @@ class mqttdata_cls if list_index < 0 list_index = 0 end end var msg = "
| Device Name  | " + end + if self.bool_version + msg += "Version  | " + end + msg += "Hostname  | " + if self.bool_ipaddress + msg += "IP Address  | " + end + msg += "Uptime  | " + msg += "%s | ", uptime) end - if self.line_duration - msg += format("🕗%s | ", self.dhm(last_seen)) # Clock - end msg += "" list_index += 1 end
|---|