Giter Site home page Giter Site logo

Comments (8)

dongennl avatar dongennl commented on June 20, 2024 1

I deleted this one and went with https://github.com/astrandb/miele ; worked perfectly first time; no messing with YAML.

from home-assistant-miele.

fpauser avatar fpauser commented on June 20, 2024

same here

from home-assistant-miele.

glennodotcom avatar glennodotcom commented on June 20, 2024

Im not sure at what point mine stopped working. Im thinking mid Feb.

Noticed this in the logs. Ive refreshed the token on the Miele developer site, but still not working.

Error during setup of component miele
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests_oauthlib/oauth2_session.py", line 483, in request
url, headers, data = self._client.add_token(
File "/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 256, in _async_setup_component
result = await task
File "/config/custom_components/miele/init.py", line 152, 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 29, in _get_devices_raw
devices = await self.hass.async_add_executor_job(func)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests_oauthlib/oauth2_session.py", line 502, in request
token = self.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)

from home-assistant-miele.

Maxwell2022 avatar Maxwell2022 commented on June 20, 2024

TokenExpiredError

you probably need to generate a new token 🤷‍♂️

from home-assistant-miele.

glennodotcom avatar glennodotcom commented on June 20, 2024

you probably need to generate a new token 🤷‍♂️

Yes as I mentioned above ive grabbed a new token from the Miele developer portal but its still generating the errors.

from home-assistant-miele.

dongennl avatar dongennl commented on June 20, 2024

My situation is similar to @Maxwell2022 ; I'm running HA on Docker, but with a volume mapped for config, so it persists; I followed the manual installation instructions to the letter and have my brand new tokens from Miele.
Rebooting HA after config I don't see any UI (where are we supposed to see this??), I can go to add Integration and see the Miele integration, but same errors as Maxwell (You cannot add via UI, etc.).

Looking at logs no errors at all and the Miele integration seems to be loaded:
2023-03-21 10:24:53.563 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-21 10:24:53.564 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration miele which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

(for comparison Node Red is also manually installed and works perfectly). I'm not sure what to do...

from home-assistant-miele.

defux-23 avatar defux-23 commented on June 20, 2024

I cannot see the integration, if I go to add integration, I see the Miele one but it says that it can only be added by configuration (which I've done). I have no errors in the logs. Not sure what I missed.

I had a similar issue (seeing the Integration in search, but could not add/configure it), maybe my second post here helps:
#149 (comment)

from home-assistant-miele.

Maxwell2022 avatar Maxwell2022 commented on June 20, 2024

I just ended up using https://github.com/astrandb/miele - Works like a charm first try

from home-assistant-miele.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.