Hi
i have to implement a POST using RESTful in Home Assistant
I’m trying with rest_command but I can’t understand how insert this body form-data
Hi
i have to implement a POST using RESTful in Home Assistant
I’m trying with rest_command but I can’t understand how insert this body form-data
rest_command:
ialarm_disarm:
url: http://192.168.1.170/RemoteCtr.htm
method: POST
username: admin
password: 012345
payload: 'Ctrl=3 BypassNum=00 BypassOpt=0'
or
rest_command:
aqara_g3_indicator_light_on:
url: https://rpc-ger.aqara.com/app/v1.0/lumi/res/write
method: POST
headers:
Sys-Type: 1
Appid: XXXXXXAPPIDXXXXXXXXXXX
Userid: XXXXXXUSERID.USERIDXXXXXXXXXXX
Token: XXXXXXTOKENXXXXXXXXXXX
Content-Type: application/json; charset=utf-8
payload: '{"data": { "14.21.85":"5162041" }, "options": "", "subjectId": "lumi1.XXXXXXXXXXXX", "version":"6.29", "viewId": "viewId=detail"}'