Skip to content

[homeconnectdirect] Fix program progress reset - #21518

Merged
lolodomo merged 1 commit into
openhab:mainfrom
bruestel:homeconnectdirect-issue-21341
Aug 28, 2026
Merged

[homeconnectdirect] Fix program progress reset#21518
lolodomo merged 1 commit into
openhab:mainfrom
bruestel:homeconnectdirect-issue-21341

Conversation

@bruestel

Copy link
Copy Markdown
Contributor

Bugfix.

The branch that resets the program-progress channel to 0 % passed the channel ID (program-progress) to isOptionAvailableAndReadable(), which expects a device description key such as BSH.Common.Option.ProgramProgress. The lookup could therefore never match, the condition was always false and the branch has effectively been dead code.

The key is now taken straight from the change event, which the branch is already filtered on. The condition itself stays unnegated, because the two neighbouring branches are intentionally asymmetric:

  • Program progress is only exposed by the appliance while a program is set up or running. When the option becomes readable again, the next program is being prepared, and that is the moment the progress of the previous run becomes stale and has to be reset to 0 %. At the end of a program it must not be reset, because the operation state Finished sets it to 100 % there.
  • Remaining program time is the other way round: it has to be cleared when the option disappears, i.e. when no program is running any more.

This is an alternative to #21456, which added a negation instead; the rationale is discussed in #21341.

Note that this most likely does not change the behaviour reported in #21341: the program-progress channel is set to 100 % while the appliance is in the Finished state and back to 0 % once it leaves that state, which is handled by the operation state value handler. That part is still under investigation, so the issue should stay open.

No user-visible configuration or documentation changes.

Related to #21341

Testing

Built with mvn clean install -pl :org.openhab.binding.homeconnectdirect (build success, no new static analysis findings).

The program progress reset was checking the channel ID instead of the
device description key, so the lookup never matched and the branch was
dead code.

Related to openhab#21341

Signed-off-by: Jonas Brüstel <openhab@bruestel.net>
@bruestel
bruestel force-pushed the homeconnectdirect-issue-21341 branch from bd5e943 to a836a98 Compare August 28, 2026 09:05
@bruestel
bruestel marked this pull request as ready for review August 28, 2026 09:05
@bruestel
bruestel requested a review from lolodomo August 28, 2026 09:06

@lolodomo lolodomo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you.

@lolodomo
lolodomo merged commit 37dabe1 into openhab:main Aug 28, 2026
2 checks passed
@lolodomo lolodomo added the bug An unexpected problem or unintended behavior of an add-on label Aug 28, 2026
@lolodomo lolodomo added this to the 5.3 milestone Aug 28, 2026
@lolodomo

Copy link
Copy Markdown
Contributor

To be backported to branch 5.2.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An unexpected problem or unintended behavior of an add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants