Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the integration is reloaded while running a program, the running program is the only program available at select entities #134861

Open
simon1964 opened this issue Jan 6, 2025 · 6 comments · May be fixed by #136949

Comments

@simon1964
Copy link

The problem

After the upgrade to 2025.1 at first I could see the program selected on the dishwasher in "selected program"
I did some test where I selected pre_rinse at the dishwasher and copied the value of the "selected program" to "Active program" in an automation. Pre rinse on the machine started.
Since then only pre_rinse is available in home connect. It doesn't show the program selected on the dishwasher anymore.
Executing the automation:

action: select.select_option
data:
option: dishcare_dishwasher_program_auto3
target:
entity_id: select.dishwasher_active_program

gives:

Error running action

Option dishcare_dishwasher_program_auto3 is not valid for entity select.dishwasher_active_program, valid options are: dishcare_dishwasher_program_pre_rinse

What version of Home Assistant Core has the issue?

core-2025.1.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Home Connect

Link to integration documentation on our website

https://www.home-assistant.io/integrations/home_connect/

Diagnostics information

No response

Example YAML snippet

action: select.select_option
data:
  option: dishcare_dishwasher_program_auto3
target:
  entity_id: select.dishwasher_active_program

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Jan 6, 2025

Hey there @DavidMStraub, @Diegorro98, mind taking a look at this issue as it has been labeled with an integration (home_connect) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of home_connect can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign home_connect Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


home_connect documentation
home_connect source
(message by IssueLinks)

@Diegorro98
Copy link
Contributor

Hi!
If I understand correctly, your problem is that after starting the "pre-rinse" program, then only "pre-rinse" is available, right?
Do you know if the integration was reloaded or Home Assistant was restarted while the dishwasher was running the program?

@simon1964
Copy link
Author

Yes, pre-rinse was started by copying from "selected program" to "active program".
I can't recall if home-assistant was restarted while running the program. I didn't let the program finish though.
It was restarted a few times later.
Strange just did a restart and it sees all the programs.
Can it be that when home assistant is restarted with the dishwasher powered, but not on home assistant only knows the last program.
So for home assistant to see all programs the dishwasher needs be switched on when home assistant is restarted.

@simon1964
Copy link
Author

Some more testing.
The dishwasher defaults to eco. That is not visible in "selected programs". It seems selected programs is only filled when I change from the default value when switching on the dishwasher. So switching to auto3 is visible. When switching back to eco also is visible. So making eco work I have to select another program and than eco.

@Diegorro98
Copy link
Contributor

Okey, so these are to dev-known problems:

  • If the appliance (in your case, the diswasher) is running a program while Home Assistant is restarting or the integration is being reload, the only program available is the program that is currently running.
    Why does this happen? API does return that, maybe it does make sense because we ask to the API what are the available programs, and it is kind of logical that the only program available while the program is running is the program that is currently running
    I would like to fix that once we have changed the library we depend-on right now, which is in the current works

  • Currently we don't fetch which program is selected at the start, we let the API notify us about that. We can ask that to the API at the start, sure, but after the library change

@Diegorro98
Copy link
Contributor

@home-assistant rename If the integration is reloaded while running a program, the running program is the only program available at select entities

@home-assistant home-assistant bot changed the title Home Connect If the integration is reloaded while running a program, the running program is the only program available at select entities Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants