It authenticates now, many thanks. After removing all special chars from password I managed to authenticate in Swagger but not yet in your integration. There the problem was that I still had an old ID and Secret in my yaml config (from other Miele integration). The integration config was passing the old ID in the url.
If your old id and secret work in Swagger, they should work in the integration too.
No, I created a new ID which worked in Swagger, still had an old ID in yaml config. After changing that to new ID, the process worked. We can pm if there is any further info that could be of help.
Hi,
Thank you for this great HACS! It works like a charm
I have a Miele wwd660 washing machine. All sensor are available in HA. I can see when the washing machine is running, door is open, etc.
However, some sensor are available in HA, but they seem not work, like sensor.washing_machine_energy, sensor.washing_machine_program_id and a few more.
Is this expected?
In the status I see:
ProgramID:
rawProgramID: 190
programType: Own programme
rawProgramType: 1
programPhase: Main wash
rawProgramPhase: 260
dryingStep:
rawDryingStep: null
spinningSpeed: 1400
rawSpinningSpeed: 1400
ventilationStep:
rawVentilationStep: null
currentWaterConsumption: 0
currentWaterConsumptionUnit: l
currentEnergyConsumption: 0
currentEnergyConsumptionUnit: kWh
waterForecast: 0
energyForecast: 0
progress: 34.3
finishTime: 13:23
kickoffTime: 10:25
friendly_name: Washing machine Status
Any help would be appreciated.
Hello everyone,
I’d like to use the Miele component via HACS. I have HA OS running inside a VM, but I am unsure how to install requests_oauthlib (or is it maybe preinstalled)?
I tried using the commands as written in Prerequisite, but when I log in via SSH, my /srv/ directory is empty and pip3 is not an executable.
What am I doing wrong here?
Regards,
Pete
I suddenly keep getting these errors, after a few months of working component:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: homeassistant.setup
Source: custom_components/miele/miele_at_home.py:174
Integration: miele (documentation, issues)
First occurred: 13:09:51 (1 occurrences)
Last logged: 13:09:51
Error during setup of component miele
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 235, in _async_setup_component
result = await task
File “/config/custom_components/miele/init.py”, line 419, in async_setup
data_get_devices = await client.get_devices(lang)
File “/config/custom_components/miele/miele_at_home.py”, line 48, in get_devices
home_devices = await self._get_devices_raw(lang)
File “/config/custom_components/miele/miele_at_home.py”, line 32, in _get_devices_raw
if await self._session.refresh_token(self.hass):
File “/config/custom_components/miele/miele_at_home.py”, line 165, in refresh_token
self._token = await hass.async_add_executor_job(
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/miele/miele_at_home.py”, line 174, in sync_refresh_token
return self._session.refresh_token(
File “/usr/local/lib/python3.10/site-packages/requests_oauthlib/oauth2_session.py”, line 452, in refresh_token
self.token = self._client.parse_request_body_response(r.text, scope=self.scope)
File “/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/clients/base.py”, line 427, in parse_request_body_response
self.token = parse_token_response(body, scope=scope)
File “/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/parameters.py”, line 441, in parse_token_response
validate_token_parameters(params)
File “/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/parameters.py”, line 448, in validate_token_parameters
raise_from_error(params.get(‘error’), params)
File “/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/errors.py”, line 399, in raise_from_error
raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant)
Any ideas?
Hi,
I have the same issue as described above, the water and energy consumption are not displayed. I see that they are both enabled in HA.
What/ where else can I check?
I have a WCC660 washing machine.
Best regards,
Haaino
Did you find a way to start you program? I just can‘t get it going to work. Always 400, bad request.
This is what I am trying to do, as per instructions and wiki… without success.
How to get credentials?
I go to https://www.miele.com/f/com/en/register_api.aspx
but does not register. Is that the right address?
Thanks for the tip Kai
500 Internal Server Error
Server got itself in trouble
But doesn’t seem to work either…
This link:
https://www.miele.com/developer/getinvolved.html
gives this info:
Registration for client credentials is currently not available.
We are working on the issue.
Please try again later.
Maybe a problem with release of the new api 1.0.6
From addon:
The component is not configured. Please follow the documentation.
From link
500 internal server error
I registered today via this link:
https://www.miele.com/f/com/en/register_api.aspx
Initially I got a javascript error on that page because jQuery was not correctly loaded. But after adding jquery via de console I was able to post the form. Could not get it to work in any of my other browsers as well.
Post this code in de web console to add jquery:
var jqry = document.createElement('script');
jqry.src = "https://code.jquery.com/jquery-3.3.1.min.js";
document.getElementsByTagName('head')[0].appendChild(jqry);
After that the form does submit (reload not needed) and you will receive an e-mail from Miele with a link containing the client details.
Thank you very much!
Now that page works properly…
Miele should spend some bucks to a coding-team that reads here and possible can fix this bug now
After how long did the email arrive? I waited 10 minutes and so far nothing
EDIT: 15 minutes wait
Hi there,
Happy New Year!
I have removed the previous Miele yaml file that contained my API user name an password from my HA installation but I’m still getting the below message after every restart and throughout the day in my HA notifications:
Any advise or is this something that will get fixed soon with an update?
Remove the section miele:
from configuration.yaml
and restart Home Assistant.
Thanx Ake,
Too much new years spirits and I missed that I had the Miele information in two different files!
Thank you!
Hi Pete, you do not need to install oauthlib, nor edit your config.yaml. The latest instruction are @ https://github.com/astrandb/miele
Has anyone noticed the new miele integration gives out very basic names? Screenshot below.
Is there a way to change these to friendly names?