Hi there,
Could someone please let me know if is there a way to send HTTP POST REST API commands from In Control through json codes, as we can send TCP commands ??
We know this below is possible !
{
“model”: “GenericNetworkAdapter”,
“ip”: “tcp://10.100.87.99:4998”,
“ports”: [{
“id”: “generic_curtain”,
“name”: “Curtain”,
“methods”:[
{
“id”: “power”,
“name”: “Power”,
“command”: “setstate,1:3,%\r”,
“params”: [
{“id”:“on”, “name”:“Open”, “value”:“1”},
{“id”:“off”, “name”:“Close”, “value”:“0”}],
“type”: “actions”
}
]
}]
}
I would like to do some like below , is there a way ???
{
“model”: “GenericNetworkAdapter”,
“ip”: “http://10.100.87.99:8080”,
“ports”: [{
“id”: “generic_switch”,
“name”: “Switch”,
“methods”:[
{
“id”: “light”,
“name”: “Light”,
“command”: (“deviceid”: “100000140e”,“data”: {“switch”: “%\r”})
“params”: [
{“id”:“on”, “name”:“On”, “value”:“1”},
{“id”:“off”, “name”:“Off”, “value”:“0”}],
“type”: “actions”
}
]
}]
}
Thanks in advance.