How-To: Remote Control the Robin
Robin Tech Note
Control the relay switch(es) using HTTP commands
- Only available on the Robin CV and HV -
You can control the Robin to control the built-in relay switch(es).
-
The Robin CV is equipped with one relay switch, the Robin HV is equipped with two relay switch-
es. -
The Robin will answer to these commands in JSON.
Command:
curl -u admin:<password> “http://<address>/api/v1/switch_
set?state=on&switch=1”
Goal:
Activate switch no. 1 (close the relay)
Answer:
{
“rv” :
“ok” : true
}
Command:
curl -u admin:<password> “http://<address>/api/v1/switch_
set?state=off&switch=1”
Goal:
Deactivate switch no. 1 (open the relay)
Answer:
{
“rv” :
“ok” : true
}
Command:
curl -u admin:<password> “http://<address>/api/v1/switch_
set?state=pulse&duration=5&switch=1”
Goal:
Activate switch no. 1 for the duration of 5 seconds (pulse the relay)
Answer:
{
“rv” :
“ok” : true
}
‘Duration’ is a variable value (in seconds)
Command:
curl -u admin:<password> “http://<address>/api/v1/switch_get?switch=1”
Goal:
Retrieve the state of switch no. 1 (get status of switch)
Answer:
{
“rv” : {
“state”:”off” / :”on”
},
“ok” : true
}
Use switch=1 for the relay switch on the Robin CV, use switch=1 or switch=2 for the Robin HV.