Smartthings Integration Error - newbie need help

Hi - I just switched over to HA less than a week ago. I’m not sure this is the right category to post my issue. Pls let me know where to post otherwise. Thx.

Brief Status - I have HA installed in docker (no supervisor, etc), running on ubuntu, and have everything moved over to HA (except the Samsung appliances and the Ultraloq Lock). Everything runs fine except when I tried to integrate Smartthings (I need it for the lock). I am not using HA cloud but installed webhook daemon (as docker) on my ubuntu box. Everything work accordingly including IFTTT triggers to light up my living room. So I know the webhook URL I set in config is acceptable to HA and works.

When I installed Smartthings integration, I got the error “TargetInvalidChallengeError”. I tried multiple tokens from Smartthings, and deleting the “smartthing” file in “.storage”, etc (all solution I could found from google) and none of them works. What should I do to make it work? Any suggestion?

I am running HA version 2022.9 docker image

Here is the error message from the container log:

pysmartthings.errors.APIResponseError: Unprocessable Entity (422): { "requestId": "E6C8AD0B-2ED9-4995-B83E-4C10C64E1B99", "error": {"code": "ConstraintViolationError", "message": "The request is malformed.", "details": [{"code": "TargetInvalidChallengeError", "target": "https://<my-webhook-url>/api/webhook/387ab34cf8078e4ef95477886109e98f74d58cd76bf50ccdcdfba36d8d8824c1", "message": "Target did not respond with correct challenge", "details": []}]}}

Any help/direction to investigate is much appreciated!

Thank you!

Hi - I still couldn’t get Smartthings to integrate with HA and really would like to know if there is a way for me to fix that issue without using the HA cloud service.

But the issue is not that high priority on my to-do list now because I spent the last 10 hours or so learning how to create a template lock, template input_boolean, and shell_command to “simulate” a virtual lock that can get status updates, remote locking and unlocking via Ultraloq IFTTT integration. There are a couple of issues with this “virtual/custom integration” that are not HA’s (but Ultraloq and IFTTT) fault:

  • can’t get the initial value of the lock because Ultraloq does not have an IFTTT API to fetch the lock status (and for the version of my lock, the door close/open status as well)
  • IFTTT sucks big time - very unstable (applet not necessary got to run) and response time is chaotic.

But because of this interim solution, I can now lock/unlock and see the status of my lock from the Home app and use Siri to control it. I am so happy! :laughing:

I still hope the veterans here can help me out on the Smartthings integration issue, and/or wait for an official integration with Ultraloq :cry:

Thanks so much for reading my second post :stuck_out_tongue: and hope you can help this lil bro out to resolve that annoying Smartthings issue.

Coming from Vera and Smartthings for over 10 years, HA Rocks Big Time!