heatmiser-node
A nodejs module to talk to heatmiser thermostats
Credits
Reading the thermostat status
var hm = new Heatmiser('localhost', 1234);
hm.on('success', function(data) {
console.log(data);
});
hm.on('error', function(data) {
console.log(data);
});
hm.read_device();
Writing to the thermostat
var dcb;
// set frost mode
dcb = {
runmode: 'frost'
}
hm.write_device(dcb);
// set current date and time
dcb = {
time: new Date()
}
hm.write_device(dcb);
// set the thermostat hold
dcb = {
heating: {
target: 20, // C
hold: 30 // minutes
}
}
hm.write_device(dcb);