SmartThings integration - Network or server error occured. Try again later

Hi!

I have become acquainted with hassio (can’t use the dot in the name because I’m a new forum user and it allows me max 2 links per post) yesterday, when I installed it on a Raspberry Pi 4. So you could say I’m as noob as it gets :slight_smile:

I’ve been struggling for hours and hours to get it to integrate with Samsung SmartThings, but it just does not work.

  1. In the hassio web interface I go to Configuration->Integrations and try to add the SmartThings.
  2. At that point it requests a token which I successfully generate in my Samsung account.
  3. I paste the token and hassio accepts it and then says: “Please install the Home Assistant SmartApp in at least one location and click submit.” Quite a cryptic message, if you ask me… I mean what SmartApp, install it where? Anyway… I have figured out that it’s trying to tell me to install the HomeAssistant SmartApp inside the Samsung SmartThings Android app.
    4.So I’m trying to do that by tapping “Add SmartApp” in the Samsung SmartThings Android application. There the “Home Assistant” SmartApp shows up in my list with the correct address (https://hassio.mydomain.com"), but when I tap that Home Assitant SmartApp to add it, it always says: "Network or server error occured. Try again later."

My http section in the hassio config looks like this:

http:
  base_url: https://hassio.mydomain.com

I have my own domain name referring to my own static IP address and I’m using an Apache2 reverse proxy on a different machine (not on the hassio server) to redirect the appropriate traffic to the hassio server on the local network. Trying to access the external domain address mentioned above from a browser works just fine, I can log into hassio, everything is working. But SmartThings has some problem with it. On the machine which has the reverse proxy I use real SSL certificates managed with LetsEncrypt and the certificates are up to date and fine.

Are there any logs in hassio that I can check? Or is there a way to figure out why SmartThings is giving me this error?

Oddly, if I monitor my Apache acces.log and error.log, I don’t see any entry in them when I tap the Home Assistant SmartApp in the SmartThings Android app. It’s like no request even reaches the proxy server in my LAN.

1 Like

I am having the same issue. I use nginx as proxy on the same machine as HA server. I have opened ports 80 and 443 on my modem and I route them to my HA machine. SSL certificates are managed with LetsEncrypt. Does anyone know the cause and the solution?

Any chance you guys are using pihole or adguard? I was and was facing this same issue. Something goofy with the URL that ended up on a block list somewhere so it’d never complete. Once I switched off wifi on my phone (and used cellular), I didnt see this error.

I have solved the issue. The usual SmartThings app is not working. Try SmartThings Classic.

@denmatfoton Thank you! Indeed with the SmartThings Classic app it works!

It actually says here:
Home Assistant SmartThings Instructions
to “Open the SmartThings Classic mobile app”

…who would have thought!

1 Like

Affirmative, had the same symptoms using the SmartThings “modern” app. I installed the SmartThings Classic app, started over, and HA integration worked straight away.