I use home assistant to manage my smart home as opposed to SmartThings directly.
I was hoping for my new JetBot to have a deep integration, but that doesn’t seem to be the case sadly.
For most missing features I’m able to use the main API to get the attributes / capabilities I need. But the one missing piece of the puzzle is being able to call the API to clean a specific room / area. Also even better would be a spot clean once I’ve figured the areas out.
I believe this is an OCF feature, I’ve been querying the OCF API to see what I think is the href of the feature I need, which I think is /map/areaclean/vs/0
. Calling that I can see this response:
{
"data": {
"value": {
"payload": {
"rt": [
"x.com.samsung.da.areaclean"
],
"if": [
"oic.if.a"
],
"x.com.samsung.da.mapId": "1",
"x.com.samsung.da.supportedAreaName": [
"Kitchen",
"Study room",
"Living room",
"Hallway",
"Utility"
],
"x.com.samsung.da.items": [
{
"x.com.samsung.da.id": "1",
"x.com.samsung.da.cleanStatus": "1"
},
{
"x.com.samsung.da.id": "2",
"x.com.samsung.da.cleanStatus": "1"
},
{
"x.com.samsung.da.id": "3",
"x.com.samsung.da.cleanStatus": "1"
},
{
"x.com.samsung.da.id": "4",
"x.com.samsung.da.cleanStatus": "1"
},
{
"x.com.samsung.da.id": "5",
"x.com.samsung.da.cleanStatus": "1"
}
]
}
},
"data": {
"href": "/map/areaclean/vs/0"
},
"timestamp": "2023-10-24T14:15:31.288Z"
}
}
I am now trying to trigger an area name. I did find an old reddit post suggesting that this is the syntax to use, but I get an error.
{
"commands": [
{
"component": "main",
"capability": "execute",
"command": "execute",
"arguments": [
"/map/areaclean/vs/0", { "x.com.samsung.da.areaName": "Hallway" }
]
}
]
}
Does anyone know if this syntax is correct or I’m just doing it wrong?