Translation issues #16
Replies: 12 comments 6 replies
-
We could map 1795 to main_dishwash and make consequential changes in translation files. OK? |
Beta Was this translation helpful? Give feedback.
-
It will be a Mission Impossible to catch all program_ids and program_phases by watching the UI. Perhaps it could be good to make a little log facility that logs all raw and localized values for program_id and program_phase while they are passing by. We could flag the values that are not defined in the code already. |
Beta Was this translation helpful? Give feedback.
-
Yes, that sounds like a great idea. (BTW: Sometimes for whatever reasons, the API doesn't return a localized name. And even the app sometimes shows incorrect values for e.g. set drying features, which go away when you re-open the screen.) |
Beta Was this translation helpful? Give feedback.
-
I have created PR #18 for some of the issues discussed here. |
Beta Was this translation helpful? Give feedback.
-
I've read through the openHAB page and it does include a lot more programs. We have to split From reading the code, would we have separate |
Beta Was this translation helpful? Give feedback.
-
Things are never simple... DISH_WASHER_PROGRAM_ID = {
1: "program_1",
2: "program_2",
}
WASHING_MACHINE_PROGRAM_ID = {
1: "wash_1",
2: "wash_2",
}
STATE_PROGRAM_ID = {
"dish_washers": DISH_WASHER_PROGRAM_ID,
"washing_machines": WASHING_MACHINE_PROGRAM_ID,
} |
Beta Was this translation helpful? Give feedback.
-
The structure above can be extended. It is static data so the code should be managable once it is in place. STATE_PROGRAM_ID = {
"dish_washers": DISH_WASHER_PROGRAM_ID,
"washing_machines": WASHING_MACHINE_PROGRAM_ID,
"washer_dryer_machines: WASHER_DRYER_PROGRAM_ID,
"oven": OVEN_PROGRAM_ID,
# And so on...
} Regarding -32768 and none: My plan is to not create the sensors for these items. As a interpret the docs these values indicate that the item is not present. If the API suddenly starts to report valid values, the sensors will appear after next restart of HA. It is possible to discover them dynamically also, but that is an exercise for a really rainy day. Program ID -> Program is OK with me |
Beta Was this translation helpful? Give feedback.
-
Regarding the Programs, the problem is that the washer dryer supports three modes: washing, drying, and combined washing & drying. The available programs are different for each mode and I suspect at the least the first two modes use the IDs for washing machines and tumble dryers respectively (not sure about the combined mode, I suspect its a mixture, but I'll check some programs and write down what the API reports - could we maybe implement the logging feature soon? I can try to whip something up, but you probably know better where to put it. I'd suggest enabling it for As for |
Beta Was this translation helpful? Give feedback.
-
As you know @mundschenk-at ,I only have access to fridge and freezer. I therefore jumped into conclusions on use of
|
Beta Was this translation helpful? Give feedback.
-
Sounds good. I think the target temperature is only shown for washing machines/washer-dryers, not for pure tumble-dryer programs. I'm not entirely sure about dishwashers, except for some special programs there is no explicit temperature associated with them, so I assume there is not really a target temperature either, but I don't have the latest generation so things might be different for newer models. The temperature can probably not be set via the API, unless Miele adds new functions to select programs remotely. If so, the interaction model lacks a lot of the necessary concepts at the moment, so I kinda doubt that this is coming. You set the temperature during program selection. For washing machines, it kind of is an important thing - for example, you would not want to wash your silk pyjamas with 60 °C. (Even for manual selection, the available temperatures are largely limited by the overall program.) |
Beta Was this translation helpful? Give feedback.
-
I've put the available sources together and made table of available programs by machine type (the openHAB integration, the ioBroker integration, and the Miele API examples): |
Beta Was this translation helpful? Give feedback.
-
I have created PR #43 for this. |
Beta Was this translation helpful? Give feedback.
-
Hi @astrandb, I've been trying to improve the German translation and noticed a conceptual issue: Currently different status values are mapped to the same technical string (e.g. both
260
for washing machines and1795
for dishwashers map tomain_wash
. However the German term for that phase depends entirely on the device, so for washing machines it should beWaschen
(what the Miele API/app uses) orHauptwaschgang
, whereas for dishwashers the API usesReinigen
, which is much more appropriate.Is it possible to make the translation context dependent, i.e. for which kind of device the sensor is, or do we need to have more concrete technical status strings to enable appropriate translations?
Beta Was this translation helpful? Give feedback.
All reactions