Comparing version 0.0.4 to 0.0.5
@@ -250,2 +250,3 @@ var net = require('net'); | ||
case 'runmode': | ||
case 'run_mode': | ||
// Run mode (controls heating) | ||
@@ -257,5 +258,7 @@ if (model != 'TM1') { | ||
case 'awaymode': | ||
// Away mode (controls hot water) | ||
case 'away_mode': | ||
// Away mode (controls hot water) [true, false] | ||
if (model.match(/(HW|TM1)$/)) { | ||
items.push(dcb_entry(31, data[key] == 'away' ? 1 : 0)); | ||
var away = (typeof data[key] == 'boolean') ? data[key] : data[key] == 'away' | ||
items.push(dcb_entry(31, away ? 1 : 0)); | ||
} | ||
@@ -262,0 +265,0 @@ break; |
{ | ||
"name": "heatmiser", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A node.js app that talks to heatmiser wifi thermostats", | ||
@@ -5,0 +5,0 @@ "main": "lib/heatmiser.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18533
477