Comments (7)
Hey there @Thomas55555, mind taking a look at this issue as it has been labeled with an integration (husqvarna_automower
) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of husqvarna_automower
can trigger bot actions by commenting:
@home-assistant close
Closes the issue.@home-assistant rename Awesome new title
Renames the issue.@home-assistant reopen
Reopen the issue.@home-assistant unassign husqvarna_automower
Removes the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-information
Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-information
Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
husqvarna_automower documentation
husqvarna_automower source
(message by IssueLinks)
from core.
same problem here
from core.
Not sure, if I can help there, as the token management is done directly by a helper. Can you add these lines to your logger option in the configuration.yaml:
- homeassistant.components.husqvarna_automower: debug
- homeassistant.helpers.config_entry_oauth2_flow: debug
- aioautomower: debug
Example:
logger:
default: info
logs:
homeassistant.components.husqvarna_automower: debug
homeassistant.helpers.config_entry_oauth2_flow: debug
aioautomower: debug
And post the logs around the time the error occurs?
from core.
I did the logging:
2024-06-26 14:54:07.361 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Token request for husqvarna_automower_(###application key###) (invalid_grant): Failed to find token
2024-06-26 14:54:07.362 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aioautomower/auth.py", line 127, in _async_get_access_token
return await self.async_get_access_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/husqvarna_automower/api.py", line 29, in async_get_access_token
await self._oauth_session.async_ensure_token_valid()
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 531, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 103, in async_refresh_token
new_token = await self._async_refresh_token(token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 193, in _async_refresh_token
new_token = await self._token_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 226, in _token_request
resp.raise_for_status()
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1070, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://api.authentication.husqvarnagroup.dev/v1/oauth2/token')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/husqvarna_automower/coordinator.py", line 82, in client_listen
await self.client_listen(
File "/usr/src/homeassistant/homeassistant/components/husqvarna_automower/coordinator.py", line 82, in client_listen
await self.client_listen(
File "/usr/src/homeassistant/homeassistant/components/husqvarna_automower/coordinator.py", line 82, in client_listen
await self.client_listen(
[Previous line repeated 10 more times]
File "/usr/src/homeassistant/homeassistant/components/husqvarna_automower/coordinator.py", line 71, in client_listen
await automower_client.auth.websocket_connect()
File "/usr/local/lib/python3.12/site-packages/aioautomower/auth.py", line 184, in websocket_connect
token = await self._async_get_access_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aioautomower/auth.py", line 129, in async_get_access_token
raise AuthException(f"Access token failure: {err}") from err
aioautomower.exceptions.AuthException: Access token failure: 400, message='Bad Request', url=URL('https://api.authentication.husqvarnagroup.dev/v1/oauth2/token')
2024-06-26 15:01:58.997 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Token request for husqvarna_automower(###application key###) (invalid_grant): Failed to find token
2024-06-26 15:01:58.997 ERROR (MainThread) [homeassistant.components.husqvarna_automower.coordinator] Authentication failed while fetching husqvarna_automower data: Access token failure: 400, message='Bad Request', url=URL('https://api.authentication.husqvarnagroup.dev/v1/oauth2/token')
2024-06-26 15:01:58.998 DEBUG (MainThread) [homeassistant.components.husqvarna_automower.coordinator] Finished fetching husqvarna_automower data in 0.282 seconds (success: False)
from core.
This is an image I managed to capture, not sure it helps.
from core.
@Thomas55555 this issue has stopped for me, anyone else?
from core.
I can't confirm, that the problem ist solved. HA is on 2024.7.2
I still get "Husqvarna authentication expired" after exactly 24hours (latest message 12min ago, I again have to re-authenticate)
the small message "Translation Error: The intl string context variab ...." also still pops up right before forwarding to api.authentication.husqvarna.com.
from core.
Related Issues (20)
- NodeRed stopped monitoring the nodes, Error connecting to dbus: HOT 5
- RESTful sensor stops working after some time HOT 1
- Missing additional entities on HomeWizard meter HOT 8
- TP-Link P110 going offline/online repeatedly HOT 32
- Remote Keyboard Doesnt Process 4+ Codes for 1 Button Press HOT 1
- Xiaomi Smart Air Purifier 4 Lite. Unknown model. Unable to discover HOT 2
- Config entry selector does not show integrations classified as helpers
- xbox integration, failed to setup HOT 2
- Error: Unable to find notify service for webhook ID HOT 1
- Can't install homeassistant/amd64-addon HOT 1
- HmIP actual Temperature not updating since yesterday HOT 1
- Sorry It was my error HOT 1
- Automation And if (optional) using the wrong 'else' HOT 2
- Zwave integration broke after upgrade to 9.16 and 13.0.0 HOT 5
- 1x of 5x axis cams work correctly, others only show Cleared events for object analytics hits HOT 4
- Velbus entities became "unavailable" HOT 7
- Lost connections to Hydrawise cloud HOT 2
- Fritz!SmarHome Integration is not working with Ikea Remotes like Stybar HOT 3
- Activating light scene doesn't change colour temperature in Hue bulbs HOT 12
- TP-Link devices keep getting unavailable or not able to set them up HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.