core icon indicating copy to clipboard operation
core copied to clipboard

Integration SmartThings - Impossible to connect - Error unknown

Open r0m1CH opened this issue 1 year ago • 3 comments

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

r0m1CH avatar Jan 18 '24 10:01 r0m1CH

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)

home-assistant[bot] avatar Jan 18 '24 10:01 home-assistant[bot]

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

r0m1CH avatar Jan 23 '24 08:01 r0m1CH

follow, i have the same issue

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

lavolpecheprogramma avatar Feb 07 '24 22:02 lavolpecheprogramma

How ? I recreate it few times and nothings works.

r0m1CH avatar Mar 11 '24 15:03 r0m1CH

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

r0m1CH avatar Apr 08 '24 09:04 r0m1CH

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

r0m1CH avatar May 17 '24 10:05 r0m1CH