Skip to content

A nodejs module to talk to heatmiser thermostats

Notifications You must be signed in to change notification settings

RobinBol/heatmiser-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heatmiser-node

A nodejs module to talk to Heatmiser WiFi and Neo thermostats

See more examples in the examples dir

Heatmiser Neo

var heatmiser = require('heatmiser');
var neo = new heatmiser.Neo("192.168.1.100");

neo.on('success', function(data) {
  console.log(data);
});
neo.on('error', function(data) {
  console.log(data);
});

neo.info();
neo.statistics();
neo.setAway(true, ["living","kitchen"]);

Heatmiser WiFi

Reading the thermostat status

var heatmiser = require('heatmiser');
var hm = new heatmiser.Wifi('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);

Credits

About

A nodejs module to talk to heatmiser thermostats

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%