homebridge-cool-automation
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -61,6 +61,6 @@ const tcpClient = require('tcp-client') | ||
return data.map(d => { | ||
// verify temp unit | ||
let celsius = true | ||
if (d.substring(11, 16).includes('F')) | ||
if (d.substring(11, 17).includes('F')) | ||
celsius = false | ||
@@ -73,7 +73,7 @@ | ||
rt: parseFloat(celsius ? d.substring(17, 21).trim() : d.substring(18, 23).trim()), | ||
fspeed: celsius ? d.substring(23, 27).trim().toUpperCase() : d.substring(24, 28).trim().toUpperCase(), | ||
mode: celsius ? d.substring(28, 32).trim().toUpperCase() : d.substring(29, 33).trim().toUpperCase(), | ||
flr: celsius ? d.substring(33, 36).trim() : d.substring(34, 37).trim(), | ||
filt: celsius ? d[38] : d[37], | ||
dmnd: celsius ? d[40] : d[39], | ||
fspeed: celsius ? d.substring(23, 27).trim().toUpperCase() : d.substring(25, 29).trim().toUpperCase(), | ||
mode: celsius ? d.substring(28, 32).trim().toUpperCase() : d.substring(30, 34).trim().toUpperCase(), | ||
flr: celsius ? d.substring(33, 36).trim() : d.substring(35, 38).trim(), | ||
filt: celsius ? d[38] : d[38], | ||
dmnd: celsius ? d[40] : d[40], | ||
tunit: celsius ? 'C' : 'F' | ||
@@ -80,0 +80,0 @@ } |
{ | ||
"name": "homebridge-cool-automation", | ||
"description": "Homebridge plugin for Cool Automation - HVAC Systems Controller", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
265941