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.05k stars 29.71k forks source link

Integration SmartThings - Impossible to connect - Error unknown #108286

Open r0m1CH opened 7 months ago

r0m1CH commented 7 months ago

The problem

Hi guys, I'm trying to integrate my new washer available on SmartThings but I cannot make it work. I'm running latest version of HA on my self hosted instance (Cloudflare -> Traefik -> HA). I followed the official documentation and created my PAT as required. however I cannot make it work. I always end up with Unknown Error occured:

image

I had an issue with callback URL at the beginning because I was using TLS 1.3 only on CloudFlare. I also made sure Bot Fight Mode feature is disabled. I have a special waf rules for my Home Assistant to allow everything from everywhere (not Geoloc blocking like my other web services)

I activated debug log and here my logs of my tries: 2024-01-18 10:48:26.980 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Setup endpoint for https://public.hostname.cloudflare/api/webhook/86039b27ec6082a1f52e2baca10c45121b78235e0891df52eab757b9d786140d 2024-01-18 10:48:52.822 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Created SmartApp 'homeassistant.88d47aee-eddb-4862-ad1d-713a642fe97e' (ad21504c-48c4-4dd9-82aa-1b61d7b3b861) 2024-01-18 10:48:52.905 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Updated App Settings for SmartApp 'homeassistant.88d47aee-eddb-4862-ad1d-713a642fe97e' (ad21504c-48c4-4dd9-82aa-1b61d7b3b861) 2024-01-18 10:48:53.029 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Updated App OAuth for SmartApp 'homeassistant.88d47aee-eddb-4862-ad1d-713a642fe97e' (ad21504c-48c4-4dd9-82aa-1b61d7b3b861) 2024-01-18 10:51:33.108 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Setup endpoint for https://public.hostname.cloudflare/api/webhook/7c24ec78ad76d89a38217d73e2d256e19f817a7ca910a288584a4ab0b616e572 2024-01-18 10:51:40.826 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Created SmartApp 'homeassistant.39080fd9-ebf5-43db-8467-49675996cbaa' (a85809ac-3b74-4a0b-a0e4-186a444afdb0) 2024-01-18 10:51:40.924 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Updated App Settings for SmartApp 'homeassistant.39080fd9-ebf5-43db-8467-49675996cbaa' (a85809ac-3b74-4a0b-a0e4-186a444afdb0) 2024-01-18 10:51:41.068 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Updated App OAuth for SmartApp 'homeassistant.39080fd9-ebf5-43db-8467-49675996cbaa' (a85809ac-3b74-4a0b-a0e4-186a444afdb0)

I don't how to debug more this... and clue for me ?

Thanks

What version of Home Assistant Core has the issue?

core-2024.1.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

SmartThings

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

.storage/smartthings content:

{
  "version": 1,
  "minor_version": 1,
  "key": "smartthings",
  "data": {
    "instance_id": "1354b7b4-98cc-4479-86a6-d63147a49d69",
    "webhook_id": "7c24ec78ad76d89a38217d73e2d256e19f817a7ca910a288584a4ab0b616e572",
    "cloudhook_url": null
  }
}

I dont understand why there is no cloudhook URL.
I tried to manually add it but not helping.

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 7 months ago

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

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


smartthings documentation smartthings source (message by IssueLinks)

r0m1CH commented 7 months ago

Any idea for me ? I'm desperate :-/

lavolpecheprogramma commented 7 months ago

follow, i have the same issue

EDIT: i re-created the api token and now works fine

r0m1CH commented 5 months ago

How ? I recreate it few times and nothings works.

r0m1CH commented 5 months ago

I still have this issue if someone could help or let me know where to look it will be fantastic...

r0m1CH commented 3 months ago

Anything ? I tried again.. Did I miss something ?

issue-triage-workflows[bot] commented 3 weeks ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

r0m1CH commented 3 weeks ago

Not working yet :s

xabix commented 6 days ago

I have the same issue

xabix commented 2 days ago

Not sure if this will end up working but I did open a topic within Traefik as it s not clear to me if the issue is within HA or Traeifk.

https://community.traefik.io/t/homeassistant-smartthings-not-working-as-i-cant-get-api-webhook-working-with-cloudflare-as-a-proxy/24296/5

r0m1CH commented 2 days ago

Thanks. Indeed maybe this is not a HA trouble. I though it was cloudflare but I'm also on Traefik so it could be related. Keep us updated if you solve it on this side.

Teeseeone commented 1 day ago

same issue with nabu casa..