Webhook for smartthings not reachable

Was cloudflare! Thanks for the post. Fixed my issue.

Hello everyone,
I had the same issue and I tried every hits here without any luck, before finding my own one.
I have my own domain and SSL, issued by third party. No Cloudflare.

In my cause it was a TLS/SSL validation issue

  1. First I checked on SSL Certificate Checker - Diagnostic Tool | DigiCert.com. It said my TLS chain could be not totally trusted by everyone
  2. I found this How to Install SSL Certificate on NGINX Server which pointed me out to the right direction: creating a crt bundle, merging SSL domain certificate and intermediate + CA certificate in a single fullchain.pem cert file
  3. I updated the new fullchain.pem file on my HA and rebooted
  4. Smarthings registration could be finally be completed!

Hope it could help someone else.

Hi, I recently added some country restrictions on cloudflare and just found that this was why smartthings stopped working. May I ask you how you can add this /api/webhook exception to my WAF rule on cloudflare?

edit:
NVM, I think I figured out.

1 Like

Same here. Currently got public ddns thru synology.me with reverse proxy. For now I can access remotely to main page but can’t to /api/… can some tell me should I add additional settings there? Already added external and internal IP

I tried all the suggestions from previous replies and didn’t work and started looking at my cloudflare config after reading this one. Turns out I had to lower the minimum TLS version from 1.3 to 1.2 and then it worked.

1 Like

Hello.

I am unfortunately not very well informed about the settings, what have you changed on the Synology NAS?

DAMN! After several days I figured out what was the problem thanks to your post. In my case I created a WAF rule on Cloudflare who accepts only connection coming from my country. I had to temporary disable that rule as Smartthings connection is coming from Ireland. THANK YOU!

1 Like

This is the only thing that works!!! Other examples of external_url did not tell me to put in the port. Thanks for pointing that out.

Thank you so much. It is working. I was just missing the “:8123” for external

I had this issue, but in a slightly different setup. I run Home Assistant as docker container. I have a DDNS domain name, the router forwards the external port to an internal apache2 site (where the Let’s encrypt certificate is installed), apache2 strips the TLS and proxies it to the home assistant docker instance on port 8123 (without TLS). The issue in my case was:

ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 172.30.0.1, but your HTTP integration is not set-up for reverse proxies

After adding the IP to configuration.yaml as:

http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.0.1

I was able to set up the Smartthings integration.

Same question, did you find a solution?

this was it for me! thanks!

I’m also looking for this! I have reverse proxy on port 444 - so my external https address looks like:

https://xxxx.xxxxxxxxxx.synology.me:444 - acces from outside works like a charm, but running SmartThings on Home Assistant running on VM Synology gives errors on webhook

Same here, reverse proxy on a different port. (bit different in my case, using 2 synology on my network, running HA on one but the reverse proxy has been done from the other one, everything managed well in the firewall settings on the synos, also on my udm pro se as well)
External access also working good but I can not figure out how can I make smart things integration run.
Tried many different workarounds, still the same.
‘Smartthing could not validate the webhook URL’

Do somebody has an idea? What can I do to make this work?

I changed to a owned website name together with Cloudflare - now it works for me

Can you tell me more about the process, please?

Hi Cisco,

I added Cloudflare to Home Assistant
Here is some information: HOWTO: Secure Cloudflare Tunnels remote access - Community Guides - Home Assistant Community

When having cloudfare configured to acces HA via https (of your domain name) - then everything is setup properly and you can start to install the integration of Smartthings

Thanks a lot! I’ve successfully configured a Cloudflare tunnel, and it’s working perfectly now.

However, I’m curious to know how you secured this setup?
Now, my Home Assistant is exposed to the internet through my domain that I purchased from Cloudflare.

Hi @cisco,

That’s the nice thing of Cloudflare - it takes care of everything including securing acces to you HA device - there is a lot of info on the internet regarding Cloudflare:

Cloudflare Explained: Features, Benefits, How to Use for Your Site - HostScore

Hi @Pandabeer40

Thanks, yes, I’ve tried reading a lot about it.

Most users also advise using extra protection like WAF rules, mTLS, self-hosted applications, and so on.
However, using mTLS and other stuff was beyond my knowledge when I reviewed the how-tos.

I’m also wondering if it will work with HA integrations like SmartThings, or if it will stop working with them automatically since they won’t be able to reach the server again.