home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.17k stars 29.84k forks source link

Smappee integration : OAuth authorization error while obtaining access token #125212

Open braham2019 opened 1 week ago

braham2019 commented 1 week ago

The problem

Tried to active the Smappee integration in HA:

  1. entered client_id, client_secret in configuration.yaml & rebooted
  2. got the prompt to login to the Smappee website
  3. logged in using my app username and password. I login and it works fine, I can select my home
  4. but when it returns to the HA screen, I get the error "OAuth authorization error while obtaining access token"

Log is showing

Logger: homeassistant.helpers.config_entry_oauth2_flow
Source: helpers/config_entry_oauth2_flow.py:220
First occurred: 11:04:25 (2 occurrences)
Last logged: 18:03:08

Token request for smappee failed (unauthorized_client): Invalid Credentials

and

Logger: homeassistant.helpers.config_entry_oauth2_flow
Source: helpers/config_entry_oauth2_flow.py:339
First occurred: 11:04:25 (2 occurrences)
Last logged: 18:03:08

Error resolving OAuth token: 401, message='Unauthorized', url='https://app1pub.smappee.net/dev/v3/oauth2/token'

What version of Home Assistant Core has the issue?

core-2024.8.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

Smappee

Link to integration documentation on our website

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

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

home-assistant[bot] commented 1 week ago

Hey there @bsmappee, mind taking a look at this issue as it has been labeled with an integration (smappee) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `smappee` 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 smappee` 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)


smappee documentation smappee source (message by IssueLinks)