Hello,
I am developing a Schema app where I can now see my switch on SmartThings App in “My Testing Devices”. It was showing proper status and I could send ON/OFF command to my device.
Suddenly, one say it went offline with same stateRefreshResponse. And now I cannot get it online even though my stateRefreshResponse returns “ON”.
Please find request/response for reference. Will you please help me find the root cause?
Request:
{
“headers”: {
“schema”: “st-schema”,
“version”: “1.0”,
“interactionType”: “stateRefreshRequest”,
“requestId”: “68D68B13-D81B-4C9F-A2A3-76495A9CCA92”
},
“authentication”: {
“tokenType”: “Bearer”,
“token”: “abc”
},
“devices”: [
{
“externalDeviceId”: “e4b4af25-0dba-4255-a772-aded2d8027c0”,
“deviceCookie”: {}
}
]
}
Response
{
“headers”: {
“interactionType”: “stateRefreshResponse”,
“version”: “1.0”,
“schema”: “st-schema”,
“requestId”: “68D68B13-D81B-4C9F-A2A3-76495A9CCA92”
},
“deviceState”: [
{
“states”: [
{
“attribute”: “switch”,
“component”: “main”,
“capability”: “st.switch”,
“value”: “on”
}
],
“externalDeviceId”: “e4b4af25-0dba-4255-a772-aded2d8027c0”
}
]
}