iobroker.comfoair
Advanced tools
Comparing version 0.0.3 to 0.0.5
{ | ||
"common": { | ||
"name": "comfoair", | ||
"version": "0.0.3", | ||
"version": "0.0.5", | ||
"news": { | ||
"0.0.5": { | ||
"en": "bugfix set vent levels.", | ||
"de": "Fehlerbehebung setzen Ventilationsstufen." | ||
}, | ||
"0.0.4": { | ||
"en": "gets & sets vent levels, gets filter-timer.", | ||
"de": "Abfrage uns setzen Ventilationsstufen, anzeigen Filter-Timer." | ||
}, | ||
"0.0.3": { | ||
@@ -195,2 +203,19 @@ "en": "minor bugfixes, sets comfort-temperature and resets filter-hours.", | ||
{ | ||
"_id": "status.filterw", | ||
"type": "state", | ||
"common": { | ||
"name": "Filter Zähler Wochen", | ||
"type": "number", | ||
"role": "value.weeks", | ||
"read": true, | ||
"write": false, | ||
"def": false, | ||
"desc": "Filter Wochenzähler", | ||
"unit": "Wochen" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "status.bypass", | ||
@@ -262,5 +287,141 @@ "type": "state", | ||
}, | ||
{ | ||
"_id": "status.ventlevel.ABLabw", | ||
"type": "state", | ||
"common": { | ||
"name": "Ventilationsstufe Abluft abwesend", | ||
"type": "number", | ||
"role": "value.info", | ||
"read": true, | ||
"write": false, | ||
"def": false, | ||
"desc": "Ventilationsstufe Abluft abwesend", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "status.ventlevel.ZULabw", | ||
"type": "state", | ||
"common": { | ||
"name": "Ventilationsstufe Zuluft abwesend", | ||
"type": "number", | ||
"role": "value.info", | ||
"read": true, | ||
"write": false, | ||
"def": false, | ||
"desc": "Ventilationsstufe Zuluft abwesend", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "status.ventlevel.ABL1", | ||
"type": "state", | ||
"common": { | ||
"name": "Ventilationsstufe Abluft Stufe 1", | ||
"type": "number", | ||
"role": "value.info", | ||
"read": true, | ||
"write": false, | ||
"def": false, | ||
"desc": "Ventilationsstufe Abluft Stufe 1", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "status.ventlevel.ZUL1", | ||
"type": "state", | ||
"common": { | ||
"name": "Ventilationsstufe Zuluft Stufe 1", | ||
"type": "number", | ||
"role": "value.info", | ||
"read": true, | ||
"write": false, | ||
"def": false, | ||
"desc": "Ventilationsstufe Zuluft Stufe 1", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "status.ventlevel.ABL2", | ||
"type": "state", | ||
"common": { | ||
"name": "Ventilationsstufe Abluft Stufe 2", | ||
"type": "number", | ||
"role": "value.info", | ||
"read": true, | ||
"write": false, | ||
"def": false, | ||
"desc": "Ventilationsstufe Abluft Stufe 2", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "status.ventlevel.ZUL2", | ||
"type": "state", | ||
"common": { | ||
"name": "Ventilationsstufe Zuluft Stufe 2", | ||
"type": "number", | ||
"role": "value.info", | ||
"read": true, | ||
"write": false, | ||
"def": false, | ||
"desc": "Ventilationsstufe Zuluft Stufe 2", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "status.ventlevel.ABL3", | ||
"type": "state", | ||
"common": { | ||
"name": "Ventilationsstufe Abluft Stufe 3", | ||
"type": "number", | ||
"role": "value.info", | ||
"read": true, | ||
"write": false, | ||
"def": false, | ||
"desc": "Ventilationsstufe Abluft Stufe 3", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "status.ventlevel.ZUL3", | ||
"type": "state", | ||
"common": { | ||
"name": "Ventilationsstufe Zuluft Stufe 3", | ||
"type": "number", | ||
"role": "value.info", | ||
"read": true, | ||
"write": false, | ||
"def": false, | ||
"desc": "Ventilationsstufe Zuluft Stufe 3", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "control", | ||
@@ -333,4 +494,150 @@ "type": "channel", | ||
} | ||
}, | ||
{ | ||
"_id": "control.setvent", | ||
"type": "channel", | ||
"common": { | ||
"name": "Ventilationsstufe setzen" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "control.setvent.ABLabw", | ||
"type": "state", | ||
"common": { | ||
"name": "Abluft abwesend", | ||
"type": "number", | ||
"role": "value.control", | ||
"read": true, | ||
"write": true, | ||
"def": false, | ||
"desc": "Setzen Ventilationsstufe Abluft abwesend", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "control.setvent.ZULabw", | ||
"type": "state", | ||
"common": { | ||
"name": "Zuluft abwesend", | ||
"type": "number", | ||
"role": "value.control", | ||
"read": true, | ||
"write": true, | ||
"def": false, | ||
"desc": "Setzen Ventilationsstufe Zuluft abwesend", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "control.setvent.ABL1", | ||
"type": "state", | ||
"common": { | ||
"name": "Abluft Stufe 1", | ||
"type": "number", | ||
"role": "value.control", | ||
"read": true, | ||
"write": true, | ||
"def": false, | ||
"desc": "Setzen Ventilationsstufe Abluft Stufe 1", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "control.setvent.ZUL1", | ||
"type": "state", | ||
"common": { | ||
"name": "Zuluft Stufe 1", | ||
"type": "number", | ||
"role": "value.control", | ||
"read": true, | ||
"write": true, | ||
"def": false, | ||
"desc": "Setzen Ventilationsstufe Zuluft Stufe 1", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "control.setvent.ABL2", | ||
"type": "state", | ||
"common": { | ||
"name": "Abluft Stufe 2", | ||
"type": "number", | ||
"role": "value.control", | ||
"read": true, | ||
"write": true, | ||
"def": false, | ||
"desc": "Setzen Ventilationsstufe Abluft Stufe 2", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "control.setvent.ZUL2", | ||
"type": "state", | ||
"common": { | ||
"name": "Zuluft Stufe 2", | ||
"type": "number", | ||
"role": "value.control", | ||
"read": true, | ||
"write": true, | ||
"def": false, | ||
"desc": "Setzen Ventilationsstufe Zuluft Stufe 2", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "control.setvent.ABL3", | ||
"type": "state", | ||
"common": { | ||
"name": "Abluft Stufe 3", | ||
"type": "number", | ||
"role": "value.control", | ||
"read": true, | ||
"write": true, | ||
"def": false, | ||
"desc": "Setzen Ventilationsstufe Abluft Stufe 3", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
}, | ||
{ | ||
"_id": "control.setvent.ZUL3", | ||
"type": "state", | ||
"common": { | ||
"name": "Zuluft Stufe 3", | ||
"type": "number", | ||
"role": "value.control", | ||
"read": true, | ||
"write": true, | ||
"def": false, | ||
"desc": "Setzen Ventilationsstufe Zuluft Stufe 3", | ||
"unit": "%" | ||
}, | ||
"native": { | ||
} | ||
} | ||
] | ||
} |
77
main.js
@@ -22,3 +22,4 @@ /** | ||
[0x07, 0xF0, 0x00, 0xDD, 0x00, 0x8A, 0x07, 0x0F], //Betriebsstunden | ||
[0x07, 0xF0, 0x00, 0x0D, 0x00, 0xBA, 0x07, 0x0F] //Status Bypass | ||
[0x07, 0xF0, 0x00, 0x0D, 0x00, 0xBA, 0x07, 0x0F], //Status Bypass | ||
[0x07, 0xF0, 0x00, 0xC9, 0x00, 0x76, 0x07, 0x0F] | ||
]; | ||
@@ -32,4 +33,5 @@ var setfanstate = [ | ||
var setcomfotemp = [0x07, 0xF0, 0x00, 0xD3, 0x01, 0x14, 0x48, 0x07, 0x0F]; //Komforttemperatur setzen | ||
var setreset = [0x07, 0xF0, 0x00, 0xDB, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x0F] | ||
var setreset = [0x07, 0xF0, 0x00, 0xDB, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x0F]; | ||
var setvent = [0x07, 0xF0, 0x00, 0xCF, 0x09, 0x0F, 0x28, 0x46, 0x0F, 0x28, 0x46, 0x5A, 0x5A, 0x00, 0x00, 0x07, 0x0F]; //Ventilatorstufen setzen | ||
var setventlevel = ['ABLabw', 'ABL1', 'ABL2', 'ZULabw', 'ZUL1', 'ZUL2', 'ABL3', 'ZUL3']; | ||
var statcmdL = statcmdi.length; | ||
@@ -94,12 +96,37 @@ var calli = 0; | ||
case "control.reset.filterh": | ||
adapter.log.warn("Setze Betriebsstunden Filter zurück"); | ||
setreset[8] = 1; | ||
setreset[9] = parseInt(checksumcmd(setreset), 16); | ||
setreset = [0x07, 0xF0, 0x00, 0xDB, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x0F] | ||
if (state == true) { | ||
adapter.log.warn("Setze Betriebsstunden Filter zurück"); | ||
setreset[8] = 1; | ||
setreset[9] = parseInt(checksumcmd(setreset), 16); | ||
callcomfoair(setreset); | ||
setreset = [0x07, 0xF0, 0x00, 0xDB, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x0F] | ||
} | ||
break; | ||
default: | ||
adapter.log.warn("Befehl nicht erkannt"); | ||
} | ||
if (id.slice(0, 15) == "control.setvent") { | ||
var setventl = setventlevel.indexOf(id.slice(16)); | ||
if (state != setvent[setventl + 5]) { | ||
adapter.log.warn("Setze Ventilationsstufen"); | ||
adapter.log.debug("Aendere: " + id.slice(16) + "Position: " + setventl); | ||
setvent[setventl + 5] = state; | ||
setvent[14] = parseInt(checksumcmd(setvent), 16); | ||
adapter.log.debug("Setvent neu: " + setvent); | ||
adapter.log.debug(id.slice(16) + " neu " + setvent[setventl + 5] + "%"); | ||
callcomfoair(setvent); | ||
adapter.setState('control.setvent.ABLabw', setvent[5], true); | ||
adapter.setState('control.setvent.ABL1', setvent[6], true); | ||
adapter.setState('control.setvent.ABL2', setvent[7], true); | ||
adapter.setState('control.setvent.ZULabw', setvent[8], true); | ||
adapter.setState('control.setvent.ZUL2', setvent[10], true); | ||
adapter.setState('control.setvent.ZUL1', setvent[9], true); | ||
adapter.setState('control.setvent.ABL3', setvent[11], true); | ||
adapter.setState('control.setvent.ZUL3', setvent[12], true); | ||
} | ||
} else { | ||
adapter.log.warn("Befehl nicht erkannt"); | ||
} | ||
} | ||
@@ -228,7 +255,17 @@ // you can use the ack flag to detect if it is status (true) or command (false) | ||
} | ||
if (hexout[5] == 1) { | ||
if (hexout[8] == 1) { | ||
adapter.log.warn("Betriebsstunden Filter zurückgesetzt"); | ||
adapter.setState('status.filterh', 0, true); | ||
} | ||
break; | ||
case 207: | ||
adapter.setState('status.ventlevel.ABLabw', hexout[5], true); | ||
adapter.setState('status.ventlevel.ABL1', hexout[6], true); | ||
adapter.setState('status.ventlevel.ABL2', hexout[7], true); | ||
adapter.setState('status.ventlevel.ZULabw', hexout[8], true); | ||
adapter.setState('status.ventlevel.ZUL2', hexout[10], true); | ||
adapter.setState('status.ventlevel.ZUL1', hexout[9], true); | ||
adapter.setState('status.ventlevel.ABL3', hexout[11], true); | ||
adapter.setState('status.ventlevel.ZUL3', hexout[12], true); | ||
adapter.log.debug("Ventilationsstufen gesetzt"); | ||
} | ||
@@ -273,5 +310,18 @@ } else { | ||
adapter.log.debug(cmd + " : lese Ventilatorstatus"); | ||
adapter.setState('status.ventlevel.ABLabw', buffarr[7], true); | ||
adapter.setState('status.ventlevel.ABL1', buffarr[8], true); | ||
adapter.setState('status.ventlevel.ABL2', buffarr[9], true); | ||
adapter.setState('status.ventlevel.ZULabw', buffarr[10], true); | ||
adapter.setState('status.ventlevel.ZUL2', buffarr[11], true); | ||
adapter.setState('status.ventlevel.ZUL1', buffarr[12], true); | ||
adapter.setState('status.ventABL', buffarr[13], true); | ||
adapter.setState('status.ventZUL', buffarr[14], true); | ||
adapter.setState('status.statstufe', buffarr[15], true); | ||
adapter.setState('status.ventlevel.ABL3', buffarr[17], true); | ||
adapter.setState('status.ventlevel.ZUL3', buffarr[18], true); | ||
for (var i = 5; i < 11; i++) { | ||
setvent[i] = buffarr[i + 2]; | ||
} | ||
setvent[11] = buffarr[17]; | ||
setvent[12] = buffarr[18]; | ||
break; | ||
@@ -286,2 +336,5 @@ case 222: | ||
break; | ||
case 202: | ||
adapter.setState("status.filterw", buffarr[11], true); | ||
break; | ||
default: | ||
@@ -316,4 +369,2 @@ adapter.log.warn("Fehler: ACK korrekt, aber Daten nicht erkannt"); | ||
// If started as allInOne/compact mode => return function to create instance | ||
@@ -320,0 +371,0 @@ if (module && module.parent) { |
{ | ||
"name": "iobroker.comfoair", | ||
"version": "0.0.3", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"description": "comfoair", | ||
"author": { | ||
"name": "Marcel Adam", | ||
"email": "marceladam@gmx.ch" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Marcel Adam", | ||
"email": "marceladam@gmx.ch" | ||
} | ||
], | ||
"homepage": "https://github.com/forelleblau/ioBroker.comfoair", | ||
"license": "MIT", | ||
"keywords": [ | ||
"ioBroker", | ||
"comfoair", | ||
"Smart Home", | ||
"home automation" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/forelleblau/ioBroker.comfoair" | ||
}, | ||
"dependencies": { | ||
"request": "^2.87.0" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^4.0.0", | ||
"mocha": "^4.1.0", | ||
"chai": "^4.1.2" | ||
}, | ||
"main": "main.js", | ||
"scripts": { | ||
"test": "node node_modules/mocha/bin/mocha --exit" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/forelleblau/ioBroker.comfoair/issues" | ||
}, | ||
"readmeFilename": "README.md" | ||
"name": "iobroker.comfoair", | ||
"version": "0.0.5", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"description": "comfoair", | ||
"author": { | ||
"name": "Marcel Adam", | ||
"email": "marceladam@gmx.ch" | ||
}, | ||
"contributors": [{ | ||
"name": "Marcel Adam", | ||
"email": "marceladam@gmx.ch" | ||
}], | ||
"homepage": "https://github.com/forelleblau/ioBroker.comfoair", | ||
"license": "MIT", | ||
"keywords": [ | ||
"ioBroker", | ||
"comfoair", | ||
"Smart Home", | ||
"home automation" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/forelleblau/ioBroker.comfoair" | ||
}, | ||
"dependencies": { | ||
"request": "^2.87.0" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^4.0.0", | ||
"mocha": "^4.1.0", | ||
"chai": "^4.1.2" | ||
}, | ||
"main": "main.js", | ||
"scripts": { | ||
"test": "node node_modules/mocha/bin/mocha --exit" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/forelleblau/ioBroker.comfoair/issues" | ||
}, | ||
"readmeFilename": "README.md" | ||
} |
@@ -13,3 +13,3 @@ ![Logo](admin/comfoair.png) | ||
Tested on comfoair CA350 | ||
Tested on comfoair CA350. | ||
@@ -19,2 +19,8 @@ | ||
## Changelog | ||
### 0.0.5 | ||
- bugfig set vent levels. | ||
### 0.0.4 | ||
- gets & sets vent levels, gets filter-timer. | ||
### 0.0.3 | ||
@@ -21,0 +27,0 @@ - minor bugfixes, sets comfort-temperature and resets filter-hours. |
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
103871
1794
56