Skip to content

v0.5.0: Dead reckoning 🧭

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Oct 06:54
· 85 commits to main since this release
Immutable release. Only release title and notes can be modified.
c80f8a8

🧭 Dead reckoning

A block the device does not answer is only recognised once the link's timeout has run out. Nothing comes back to say "not here"; the silence has to be waited out.

That is fine once. It is not fine over and over, and it is not fine at all on a link shared with other units, because the wait is theirs too.

From a reported leader/follower system: one inverter answers nothing on five of its blocks, so every probe of it costs five timeouts, fifty seconds at the default of ten. The other inverter on that link polls every ten seconds, and spends that time queued behind a question whose answer was already written down.

async_probe now takes assume_absent, a set of block names to take for absent without asking. They come back in unresponsive_blocks as though they had been silent again, so what you get describes the same device either way. Probing the same unit repeatedly, hand back the unresponsive_blocks you already have.

The trade is real and the docstring says so: a block named there cannot be discovered until it is probed for real again. That is the caller's call, which is why it is an argument and not a change of behaviour.

For Home Assistant

solaredge_modbus re-probes every fifteen minutes to notice hardware being wired in or out. Once it pins this release it can stop paying for the blocks it already knows are quiet, and stop holding the link up for whatever else is on it.

pip install solaredged

Dead reckoning. 🧭

../Frenck

                       

Blogging my personal ramblings at frenck.dev

What's changed

✨ New features

  • Let a caller name the blocks not worth asking again @frenck (#106)

🐛 Bug fixes

  • Fix the Prettier hook, which never ran @frenck (#103)

⬆️ Dependency updates

9 changes