Homey Community Forum

Http requests on lan +json live tester?

Hello again here,

I am wanting to use a virtual button to stop or start my hvac.
The API of the hvac seems very simple or i am wrong ?

My question is :
If it is as easy as starting a webrequest to remote control my connected hvac device, then how do i test that code ?
http://XXX.XXX.XXX.XX:3000/api/v1/hvac

With the following body
{
“systemID”: n (system number),
“zoneID”: m (zone number)
}

?

Hey @mattrix ,
You might want to checkout Postman.
Really useful for testing API requests.

https://www.postman.com/

For Body use raw and make sure to select JSON (blue dropdown); Also make sure to use proper double quotes like these: "

When this works you can do a webhook trigger from a Homey flow. You can find it inside Logic

1 Like