Skip to content

Start time kept after an immediate start, retry stops while the cloud is inactive (builds 34–35) - #22

Merged
TillBrede merged 4 commits into
symcon:masterfrom
bumaas:pr/start-time-retry-stop
Nov 10, 2026
Merged

TillBrede merged 4 commits into
symcon:masterfrom
bumaas:pr/start-time-retry-stop

Conversation

@bumaas

@bumaas bumaas commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This PR builds on the current master (build 33) and adds builds 34 and 35. It is the delta only; apart from the build number the tree matches our tested fork state plus your configurator commit. All 88 PHPUnit tests pass.

Motivation

After an immediate start, a dishwasher no longer took over a start time on later starts. Appliances answer programs/available/<program> depending on their operation state, and a running dishwasher lists neither StartInRelative nor most other options. The active-program refresh applied that reduced list and hid the options. Nothing showed them again, so later starts went without the start time, and setting the hidden variable was dropped without a message.

Build 34 is the follow-up from your approval of #20: RetryRefresh kept firing while the cloud was inactive.

Changes

Device (Home Connect Device)

  • Running program no longer hides options (build 35): the active-program path only adds option variables. Hiding stays with the selected-program path.
  • Return to Ready re-reads the selected program (build 35): options a running program left out are offered again. Ovens and hoods are excluded, they keep their selection locally.
  • Setting an unavailable option is reported (build 35): RequestAction on a hidden option echoes "This option is not available for the current program" instead of dropping the value.
  • Pending retry stops while the parent is inactive (build 34): an inactive cloud clears the RetryRefresh timer; the status change back to IS_ACTIVE starts the initialization anyway.

Tests

PHPUnit suite extended from 84 → 88 tests. The new dishwasher fixtures (run.json, delayedstart.json) are captures of the appliance in those states. The test API can now answer an endpoint with such a state variant and records PUT requests, so the start payload can be checked. Each fix was checked red/green: the new tests fail on the code without the fix (build 35: 3 of 86) and pass with it.

bumaas and others added 4 commits November 2, 2026 12:29
Follow-up from the review of PR symcon#20: RetryRefresh is a repeating timer. Since
build 31 it was only cleared inside the active-parent branch of
refreshDeviceState(), so if the cloud went inactive while a retry was pending
(e.g. a rate-limit block) the timer kept firing every 1-30 s until the cloud was
active again: no API request, but a script run and a debug line each time. An
inactive parent now stops the timer; the status change back to IS_ACTIVE starts
the initialization again anyway.

Tests: the new test fails before the fix (83 tests, 1 failure), 83 tests /
667 assertions green after.
An immediate start applied the reduced option list a running dishwasher
reports (no StartInRelative) and hid the option; the next start then
dropped the start time. The active-program path now only adds options,
a return to Ready re-reads the selected program, and setting a hidden
option reports instead of being dropped silently.

Before the fix 3 failing tests, afterwards 86 green.
…tays visible

Build 34 stopped a pending RetryRefresh whenever HasActiveParent() failed. That
also happens while only the event-stream IO above the cloud is down: the cloud
stays IS_ACTIVE, no status change follows, and the initialization was never
retried once the IO was back. The retry is now only stopped when the cloud
itself is inactive or no HaID is set.

Build 35 made the active-program path add-only for options, but it still hid
and disabled the "Use duration option" switch when the active program does not
list Duration. The switch now follows the same rule.

Tests: both new tests fail without the fix, 90 tests green after.
The new stubs on master (symcon/SymconStubs be1e942, raised in symcon#21) reject
IPS_ConnectInstance() on an instance that ConnectParent() already connected
("Instance #X already has a parent"). testActiveProgramDoesNotHideUseDuration
still used that pattern and failed in the PR's merge build. It now takes the
cloud ConnectParent() connected, as the other tests do since symcon#21.

Green against both the branch stubs (90 tests) and the merge with master
(209 tests).
@TillBrede
TillBrede merged commit 27ed8ba into symcon:master Nov 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants