-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Added recognized options to Home Connect actions #130662
base: dev
Are you sure you want to change the base?
Added recognized options to Home Connect actions #130662
Conversation
Hey there @DavidMStraub, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
I let this PR as a draft until #126157 is merged, as both use some common things |
The action options doesn't have descriptions because I was thinking to use the same descriptions than API documentation have, but I wanted to hear opinions about that. |
Because this services.yaml and strings have become huge, I though that for a future PR maybe start and select actions can be merged into just one action with an option that could allow to start or select the program. Same for the services that allow to set options to selected and active programs. |
@boergegrunicke, these are the action changes I mentioned to you the other day. Please let me know your thoughts. :) |
@Diegorro98 For my first try, I don't see anything anymore. From previous tests, I had a bunch of duplicated entities, so I completely reinitialized the HomeAssistant integration. My dishwasher is still not cooperative
But also the coffee maker does not have any useful entities: (That is all!) |
@boergegrunicke Well, despite that problem, you can check the how the actions look now. But about the problem, because this unrelated to the PR, I'm going to answer you here once, but please if you need further discussion, use the already created issues or a new issue. |
@Diegorro98 Sorry, I guess I was tired and searching for something completely wrong. One small thing: In the It is a little bit sad, that always all options are available for all devices (I could select a drying target for a coffee maker or a coffee-milk-ration for the dishwasher). Also, I could select features that my device does not have, like choosing the second bean tray, while my coffee maker has only one. |
My bad, because a previous version of this idea unified select and start program, I forgot to add start program translation keys again. I already fixed it.
Options could be filtered, but there are two problems that doesn't allow that:
In the end, if any of the options are not supported by your device or by your program, you will get a direct feedback with info about the error thanks to the
Thanks! 😊 |
Breaking change
Proposed change
Actions in Home Connect now have recognized options that will allow the user to easily choose options for their programs when starting and selecting a program and changing options of a already selected and started program.
These options are grouped based on the options for each appliance type, just like API documentation.
There are also custom options key at services where the users can use option keys that are not recognized here, and can be multiple options (before only one option was available per service call). Also is an easy way to migrate from the old action payload. So old action keys
key
,value
, andunits
are being deprecated (An issue will be generated).Program keys can be still be used like always at start and select program actions, but the user can select one of the recognized programs from the selector.
Also
ServiceValidationError
exceptions have been added to give direct feedback to the user.Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: