ekutner / home-connect-hass

Alternative (and improved) Home Connect integration for Home Assistant
MIT License
494 stars 53 forks source link

Coffeemaker TQ907DF5 new Entities // Time remaining for Clean&Calc, cleaning, water filter #310

Closed nireins closed 4 months ago

nireins commented 6 months ago

Hi, my new Coffeemaker Siemens TQ907DF5 shows some Entities which not translate in German:

sensor.712090391305001508_consumerproducts_coffeemaker_option_coarsness This Sensor shows these state: ConsumerProducts.CoffeeMaker.EnumType.CoarsnessExtended.Coarsness3 (Coarsness3 -> Coarsness1-6) in German -> "Mahlgrad" from "Stufe 1" to "Stufe 5"

sensor.712090391305001508_consumerproducts_coffeemaker_option_coffeestrength This Sensor shows: ConsumerProducts.CoffeeMaker.EnumType.CoffeeStrength.Strength5 (Strength5 -> Strength1-9) in German -> "Stärke" from "1" to "9"

Can you please include these entries in your integration?

In the Home Connect app I can see how many cups can still be brewed before the water filter needs to be changed. Among other things, until a cleaning is due and when Clean&Calc is due. See screenshot.

IMG_1164

Can you somehow incorporate this into the integration? That would be super helpful. thx

ekutner commented 5 months ago

If you know how to add there translations and open a PR then please do that. If you don't then please do the following:

  1. Download the latest German translation file from.
  2. Locate the /custom_components/home_connect_alt/translations/ folder under your /config folder.
  3. Copy the above file to the above folder (overwrite the eixting file) then edit it with a file editor and add the above keys and their translations in the right places. I assume you'll be able to figure out where they should go.
  4. Restart HA and verify that the translations worked.
  5. Once everything is working in German you MUST add those translation keys to the English translation file as well. Download it from here and add the same keys you added to the German file.
  6. Upload the two translation files and I'll merge them in the next release.

And there is nothing I can do about the other missing entities. The integration automatically exposes all the information which is available through the HC API as sensors or events so if it's not already there it means that the API doesn't expose that information. The mobile app is using an internal API which is not available to external application so it may show information that the integration doesn't have access to.

nireins commented 5 months ago

Hi, thank your for that.

Here are the 2 Files with my changes. (worked in my Home Assistant.)

de.json en.json

And there is nothing I can do about the other missing entities. The integration automatically exposes all the information which is available through the HC API as sensors or events so if it's not already there it means that the API doesn't expose that information. The mobile app is using an internal API which is not available to external application so it may show information that the integration doesn't have access to.

Ok, i understand. Thank yout for your comment.

ekutner commented 5 months ago

Thanks. I've merged the new options but you duplicated existing program keys in the wrong place so removed those. These changes will be included in the 1.0.3 release so when you see that available (could take some time), please verify that it is still working. I will keep this issue open until then.

ekutner commented 4 months ago

Please update to 1.1.0-b3 or later (if it will be available) and verify that the translation works as expected.

ekutner commented 4 months ago

I'm going to assume the translation is fine and close this issue. Feel free to open a new one if it's not working as expected.