core: Failed to find token, re-authenticate request

The problem

Every 24 hrs or so if have to re-authenticate the Husqvarna Automower

2024-06-19 17:29:58.353 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Token request for husqvarna_automower_xxxxxxxxxxxx failed (invalid_grant): Failed to find token 2024-06-19 17:29:58.354 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')

What version of Home Assistant Core has the issue?

core-2024.6.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

husqvarna_automower

Link to integration documentation on our website

https://www.home-assistant.io/integrations/husqvarna_automower/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 19 (2 by maintainers)

Most upvoted comments

I still have this issue on 2024.8.1: “The Husqvarna Automower integration needs to re-authenticate with Husqvarna”. This happen every 1-2 days or so…

I did as advised (remove it from HA, restart HA and also remove the app from husq_dev and reconfigure). Countdown ist started 😉 – looking forward thanks to @gaborbozoky and @Danton73

update: after 36hours still working, your hints did the trick. thanks.

I did as advised (remove it from HA, restart HA and also remove the app from husq_dev and reconfigure). Countdown ist started 😉 – looking forward thanks to @gaborbozoky and @Danton73

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.

same problem here