Skip to content

v0.3.11 - Fix switch Stage 2 timeout race (beta)

Pre-release
Pre-release

Choose a tag to compare

@VahaC VahaC released this 24 Feb 13:58
· 11 commits to main since this release

Root cause (from diagnostic logs)

The switch hotwaterdispensing stays ON for the full dispense duration (~30s). With timeout: 30 in the recipe, Stage 2 waited exactly 30s for the switch to turn OFF - the machine's dispense time equals the timeout, causing a race condition where asyncio.wait fired at the same moment the switch turned off.

Fix

Stage 2 now waits timeout + 10s (silent buffer). A step with timeout: 30 will actually allow up to 40s for the switch to turn OFF. The error message still reports the user-visible timeout.

Still includes diagnostic [CRM] WARNING logs from v0.3.10.