From af7299b6edc7625b1c6f71ff941a201dd18c6b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Strandberg?= Date: Mon, 28 Jul 2025 22:20:08 +0200 Subject: [PATCH] Add get_programs action to miele integration (#40127) Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_integrations/miele.markdown | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/_integrations/miele.markdown b/source/_integrations/miele.markdown index a8325266d9d..f168b34c18e 100644 --- a/source/_integrations/miele.markdown +++ b/source/_integrations/miele.markdown @@ -196,7 +196,15 @@ The action can be set up by UI in Automations editor. It can also be executed in | Data attribute | Optional | Description | | -------------- | -------- | ----------------------------------------------------------------------------------------------------------------- | | `device_id` | no | Select device in GUI mode, then switch to YAML mode to see the device_id. | -| `program_id` | no | Enter the program_id number. The easiest way to find the number is to fetch a diagnostic download while running the actual program. Use the value from the key `state.programId.value_raw`.| +| `program_id` | no | Enter the program_id number. The easiest way to find the number is to use the `get_programs` action from developer tools. It can also be found by fetching a diagnostic download while running the actual program. Use the value from the key `state.programId.value_raw`.| + +### Action `miele.get_programs` + +Get the list of available programs and associated parameters for applicable appliances. The API will return an empty list if the device doesn't support programs (for example, freezers). Same requirements on device state as described for `set_program` action above. + +| Data attribute | Optional | Description | +| -------------- | -------- | ----------------------------------------------------------------------------------------------------------------- | +| `device_id` | no | Select the device in GUI mode, then switch to YAML mode to see the device_id. | ## Automation examples