Hi, I’m currently developing a feature that displays the remaining ingredients in the fridge on the SmartThings app.
I’m using my own cloud-connected server, and the OAuth 2.0 connection was successful. I created a schema to integrate my virtual device and set up a device profile with the healthCheck
capability and my custom capability called fridgeIngredients
.
However, I’m facing an issue where the ingredients are not displayed on my phone. I can see my device on the dashboard, but I can’t access the detail view. Instead, I get a message saying that the device cannot be connected.
Here is the code for my custom capability and presentation.
{
"name": "fridgeIngredients",
"version": 1,
"status": "proposed",
"attributes": {
"ingredients": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": ["value"]
},
"enumCommands": []
}
},
"commands": {}
}
{
"mnmn": "SmartThingsCommunity",
"vid": "fridgeIngredientsPresentation",
"dashboard": {
"states": [],
"actions": []
},
"detailView": [
{
"label": "ingredientsInFridge",
"displayType": "state",
"state": {
"label": "{{ingredients.value}}"
}
}
],
"automation":{
"conditions":[],
"actions":[]
},
"id": "mynamespace.fridgeingredients",
"version": 1
}
Additional.
I don’t receive any response when I redirect to the callback URL (c2c-ap.smartthings.com/). Originally, I received requests to my endpoint, which handles access and refresh tokens.
However, this issue suddenly occurred, and I can’t figure out the cause of the error.
I suspect that something went wrong on the SmartThings cloud side, but I’m not sure why.