Did the webhook POST specifications change?

I have been controlling Virtual contact sensors via simple Webhook with the following content. However, since May 15th, this Webhook has stopped working. There are no particular errors, but the contact sensor value won’t change to “open” nor “close.” Have there been any specification changes?

Thanks in advance

curl -X POST
https://api.smartthings.com/virtualdevices/“deviceid-12345678”/events
-d ‘{
“deviceEvents”: [
{
“component”: “main”,
“capability”: “contactSensor”,
“attribute”: “contact”,
“value”: “open”
}
]
}’

Hi @skel5084
Thanks for reaching out.

We tested the call on our end using the following format:

curl --location 'https://api.smartthings.com/virtualdevices/id123455/events' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
  "deviceEvents": [
    {
      "component": "main",
      "capability": "contactSensor",
      "attribute": "contact",
      "value": "open"
    }
  ]
}'

It worked correctly, and we received a response

{"stateChanges":[]}

Could you confirm if you’re receiving the same response, please?
Also, would you be able to share the full request you’re sending (including headers and body)? That will help us better understand what might be going wrong.

Thank you for responding to my post. I sent the following request:

curl --location 'https://api.smartthings.com/virtualdevices/8623ebe1-XXXX-XXXX-XXXX-XXXXXXXXXX/events' 
--header 'Content-Type: application/json' 
--header 'Authorization: Bearer XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX' 
--data '{
"deviceEvents": [
{
"component": "main",
"capability": "contactSensor",
"attribute": "contact",
"value": "open"
}
]
}'

The response to this was

 {"stateChanges":[]}.

When I look at the SmartThings dashboard, it appears that the Open request is getting through, but the contact sensor remains closed.The request syntax itself seems to be fine, but I don’t understand why the contact sensor’s state is not changing. I would be very grateful for your support.

Could you enable support access to your account so I can check its details, please?

  1. Confirm the email account registered in the forum is the same one you use for SmartThings. If not, please share it with me over DM.
  2. Enable support access to your account:
  1. Go to the SmartThings Web (my.smartthings.com)
  2. Log in to your Samsung Account
  3. Select Menu (⋮) and choose Settings
  4. Toggle on Account Data Access
  5. Select the time period and confirm - In this step, please select “Until turned off”, once the team finishes, we’ll let you know so you can disable it again.

More info about this access here: https://support.smartthings.com/hc/en-us/articles/36170233944852-Enabling-Account-Data-Access-for-Support

Also, Have you attempted to change the contact sensor’s value since taking the screenshot?

Thanks for the support.

  • I’ve turned on the Account data access.
  • The registered E-mail for smartthings and here are same.
  • Yes, I’ve also attempted it and gotten the same status:
{"stateChanges":[]}

If I should do anything else, please let me know.
Thanks.

Hi @skel5084
The team is currently reviewing the issue, but we haven’t been able to reproduce it so far.
Would you mind running a quick test by creating a test virtual device using the following command?

smartthings virtualdevices:create-standard

This will help us check whether the issue is specific to your existing device or if the newly created one behaves correctly.
Let us know what you find—thanks!