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
73.79k stars 30.89k forks source link

SUPLA - unable to initialize integration #123988

Open gicalbuth opened 3 months ago

gicalbuth commented 3 months ago

The problem

Hello,

I'm running HA on RPI 3B+ with core-2024.8.1 I stricly followed the configuration procedure to set Supla integration in HA but I unable to succed in. I generated a token on cloud.supla.org as mentionned. I opened all the R/W option in order not to forget anything then I addes the following lines in configuration.yaml :

supla:
  servers:
    - server: "svr1.supla.org"
      access_token: MTAwY2FkMDQxMmFmZmQ3OGNkZDIyMjNhM2JiZjVlMzZmMDEwMjEwZTQxNzg5OTM3NWM3OTQ2MzQ0Yzl

(access_token is modified but I can send the right one if you want to chek it) After reboot, I've a failure. Here is the log detail

Enregistreur: homeassistant.components.supla
Source: components/supla/__init__.py:76
intégration: supla (documentation, problèmes)
S'est produit pour la première fois: 16:05:58 (1 occurrences)
Dernier enregistrement: 16:05:58

`Server: svr1.supla.org not configured. API call returned: {'error': 'invalid_grant', 'error_description': 'The access token provided is invalid.'}`

Any idea ?

What version of Home Assistant Core has the issue?

core-2024.8.1

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

SUPLA

Link to integration documentation on our website

No response

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 3 months ago

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

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


supla documentation supla source (message by IssueLinks)

gentleman1990 commented 2 months ago

Hi there,

I know it's a month or so, but today I faced the same issue and I was able to solve by changing the name of the server. Here is how to find the proper server address image

jamespaulley commented 1 month ago

thank you. i can see Supla under integrations but i don't know how to add my light switch devices. Can you help? thank you

mwegrzynek commented 1 month ago

The light will appear automatically in HA as soon as you put correct settings in your configuration.yaml and restart HA. Do you see them in Supla Web?

jamespaulley commented 1 month ago

Thanks. Yeah they're working in Supla web interface and the Supla app. Nothing in HA though. Do I need to enable anything in the Supla web interface, like integrations or anything? Or maybe I need to generate a new token?

mwegrzynek commented 1 month ago

If you have a token with right permissions and correct server, everything should happen automatically. Can you post some logs from your HA startup?

jamespaulley commented 1 month ago

i think i have it set up yeah. is this log of any use? maybe dimmer switches dont work? home-assistant_2024-10-19T18-27-44.112Z.log

mwegrzynek commented 1 month ago

Dimmers are not supported by this integration unfortunately. Generally, you'll have better luck connecting Supla through MQTT either directly or through cloud.

jamespaulley commented 1 month ago

would you please be able to help point me in the right direction to do that? im already using zigbee2mqtt, if that is an aissue?

mwegrzynek commented 4 weeks ago

Here you can find quite complete tutorial. It's in Polish, but it should be easy to translate and the screenshots are quite informative.

jamespaulley commented 4 weeks ago

Thank you! I got it working using the PDF! Amazing. Thank you very much.