I am currently developing STSC and Device Profile for C2C integration.
Can STSC handle the command request of a specific capability so that values can be given to other capabilities?
I have attached a picture to understand here.
nayelyz
(SmartThings Developer Support)
December 29, 2020, 3:06pm
2
Hi there! see my post here:
Yes, you can send other capability’s state in the Command Response because the property “states” is an Array, you just need to make sure that each state has the correct structure (component, capability, attribute, and value):
"states": [
{
"component": "main",
"capability": "st.switch",
"attribute": "switch",
"value": "on"
},
...
]
In my example, the presence sensor capability changes based on the Switch capability:
https://gist.github.com/nayelyzarazua-bluetrail/1496bc1a58cdc52a5968ad5e9207deb0
1 Like