Hi, I’m newbie on smartthings.
I’m trying to control a light. I want to turn it on/off simply.
I could get capability and status from the device, but when I send a command, it doesn’t respond.
What should I do ?
$ smartthings devices:status [my device id]
{
“components”: {
“main”: {
“healthCheck”: {
“checkInterval”: {
“value”: 60,
“unit”: “s”,
“data”: {
“deviceScheme”: “UNTRACKED”,
“protocol”: “cloud”
},
“timestamp”: “2023-03-09T12:40:58.829Z”
},
“healthStatus”: {
“value”: null
},
“DeviceWatch-Enroll”: {
“value”: null
},
“DeviceWatch-DeviceStatus”: {
“value”: “online”,
“data”: {},
“timestamp”: “2023-04-06T13:00:05.474Z”
}
},
“switchLevel”: {
“level”: {
“value”: 100,
“unit”: “%”,
“timestamp”: “2023-04-14T10:55:33.536Z”
}
},
“refresh”: {},
“switch”: {
“switch”: {
“value”: “off”,
“timestamp”: “2023-04-15T15:13:24.886Z”
}
}
}
}
}
$ smartthings devices:capability-status [my device id]
────────────────
Id
────────────────
1 healthCheck
2 refresh
3 switch
4 switchLevel
────────────────
? Select a capability. 3
? Select a capability. 3
{
“switch”: {
“value”: “off”,
“timestamp”: “2023-04-15T15:13:24.886Z”
}
}
$ smartthings devices:commands [my device id] switch:on
→ no respond (even errors, no return)
$ smartthings devices:commands [my device id] main:switch:on
→ no respond (even errors, no return)
$ smartthings devices:commands [my device id] main:switch:switch:on
→ no respond (even errors, no return)
Thanks in advance.