0.1.0a30: capability tests kept over a day, and run continuously
Some capability tests can only answer at certain moments: the site import
limit needs the battery charging from the grid, which only happens after
dark, and cutting PV needs sun. Until now only the last run was kept. Now
every run is kept, and one document carries them all.
New on the device page:
- Capability test status says how many checks are established, over how
many runs, and what is still waited for, e.g. "waiting for: site import
limit". A notification, rewritten after every run, lists every check and
the log. - Continuous capability test mode: switched on, it starts a capability
test run on its own whenever the house is in a state that a missing check
needs, at least 30 minutes apart and at most 12 a day, and switches itself
off when nothing is left to wait for. Every run puts everything back, as
the button does. It is always off after Home Assistant restarts. - Clear capability test history starts a collection afresh.
Kept runs survive a restart, and Download diagnostics carries every one
of them, each dated. Send that one file.
In a terminal, diagnosis.sh tests <host> --merge-into <file>.json now adds
its run to the runs the file already carries; --replace puts it in their
place.
Also: the forced startup check waits once for the inverter to wake rather
than twice, and leaves an untouched register alone.