Custom virtual device backed by API gateway - is it possible

Hi,

I am wondering if it is possible to create a kind of virtual device that can control / monitor my heating system ? I have created an API gateway for the system, where I have the basic get/post methods implemented. I would like to set the fan speed and monitor temperature, humidity, etc.
Any pointers in the right direction would be very nice !

Br Torben