comfoairq
v0.6.2
Published
Zehnder ComfoAirQ implementation
Downloads
90
Maintainers
Readme
node-comfoairq
This is a fork with a lot of changes - check original repo by herrJones
Library to control a Zehnder Comfoair Q series of ventilation devices (e.g. Q350)
Requirements
- Zehnder Comfoair Q series of ventilation device (e.g. Q350)
- Zehnder ComfoConnect LAN C interface
Test Script
A test-application is provided to demonstrate the capabilities
- Update the test/settings.json
- Run the script
npm run test
Range of functions
Not all functions are implemented as the plugin is designed for home automation
Only these are provided:
- start session
- keepalive
- send command
- close session
- register sensor
- get version
- get time
- list all registered apps
- register app
- deregister app
All functions return Promises
On 'received' and 'disconnect' events are provided
Quick-start
const comfoconnect = require('node-comfoairq');
const settings = require(__dirname + '/settings.json');
const zehnder = new comfoconnect(settings);
zehnder.on('receive', (data) => {
console.log(JSON.stringify(data));
});
zehnder.on('disconnect', (reason) => {
if (reason.state == 'OTHER_SESSION') {
console.log('other device became active');
reconnect = true;
}
connected = false;
});
const deviceInfo = await zehnder.discover('172.16.255.255');
await zehnder.StartSession(true);
// ..... do something ......
// -> find some inspiration in test\comfoTest.js
await zehnder.CloseSession();
Credits
Development of this node.js plugin is heavily inspired on the work performed by:
- Jan Van Belle (https://github.com/herrJones/node-comfoairq)
- Michael Arnauts (https://github.com/michaelarnauts/comfoconnect)
- Marco Hoyer (https://github.com/marco-hoyer/zcan) and its forks on github (djwlindenaar, decontamin4t0R)