More reliable Homekit alternative using a simple nodejs bridge

Googled a bit, what about using XMLHttpRequest

var destination = "http://192.168.0.xx:8080/rest/items/test";

var xhr = new XMLHttpRequest();
xhr.open("POST", destination, true);

var command = "ON";
xhr.send(command);

to send command ON to Item test

1 Like