Closed Krocko closed 3 years ago
@yusijs Have you the same problem?
Yes, sort of; the problem is that HomeConnect doesnt expose the programs separately. I noticed it in my logs and was thinking of looking at resolving it, but I rarely, if ever use those toggles, so I couldnt be bothered
Maybe in the homebridge repository is something useful?
Sorry I never reacted to this. This is caused by this line
desc = " ".join(["Program", program_name.split(".")[-1]])
Only the last part of the program is used for the unique ID. Removing .split(".")[-1]
should fix it. Do you want to submit a PR?
Ideally, after testing it since I don't have a WasherDryer :)
I'll give it a spin! :)
@DavidMStraub I just got a weird, new error:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 249, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/home_connect_beta/__init__.py", line 222, in async_setup_entry
hass.config_entries.async_setup_platform(entry, PLATFORMS)
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platform'
Any clue as to where I should look to solve this?
Are you sure you are using the latest version from master
? The line looks different:
I am, and it is identical hass.config_entries.async_setup_platform(entry, PLATFORMS)
Ok never mind, I upgraded my homeassistant installation and it worked now. The change seems to have worked.
I have a Siemens washdryer (WD14U592) The integration generates the same names for the washing programs and the drying programs. I get the following error and no drying programs are added.