herrjones / node-comfoairq Goto Github PK
View Code? Open in Web Editor NEWLibrary to control a Zehnder Comfoair Q series of ventilation devices
License: GNU General Public License v3.0
Library to control a Zehnder Comfoair Q series of ventilation devices
License: GNU General Public License v3.0
When using the sens command in comfoTest:
zehnder command to test (? for help): sens
register to updates on sensors
comfo : TX error -> {} -> 7/14/2020, 11:25:59 PM
(node:64668) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'kind' of undefined
at Object.cmd_RegisterSensor (/Users/matthiaskleine/Dev/node-comfoairq/lib/preparation.js:160:22)
at /Users/matthiaskleine/Dev/node-comfoairq/lib/comfoconnect.js:479:27
at new Promise (<anonymous>)
at ComfoAirQ.RegisterSensor (/Users/matthiaskleine/Dev/node-comfoairq/lib/comfoconnect.js:476:10)
at /Users/matthiaskleine/Dev/node-comfoairq/test/comfoTest.js:152:40
at Interface._onLine (readline.js:327:5)
at Interface._line (readline.js:658:8)
at Interface._ttyWrite (readline.js:999:14)
at ReadStream.onkeypress (readline.js:205:10)
at ReadStream.emit (events.js:315:20)
(node:64668) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:64668) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
When I try to register a new app with your test script, I receive an empty response.
zehnder command to test (? for help): rapp
register this app
** 08022001 - 0a18d34d34d34d34d34d34d34d34d34d34d34d34d34d34d34d3910d2091a08436f6d7075746572
bridge : connected to comfoAir unit -> 7/9/2020, 5:01:17 PM
-> TX : 0000004d0000000000000000000000000000133700000000003410138001144fd71e24cc0004080220010a18d34d34d34d34d34d34d34d34d34d34d34d34d34d34d34d3910d2091a08436f6d7075746572
{}
zehnder command to test (? for help): bridge : TCP socket closed -> 7/9/2020, 5:01:17 PM
comfo: DISCONNECTED -> 7/9/2020, 5:01:17 PM
When I try to connect afterwards, the response is NOT_ALLOWED
.
zehnder command to test (? for help): conn
connect to ComfoAir unit
** 08032002 - 0801
bridge : connected to comfoAir unit -> 7/9/2020, 5:01:59 PM
-> TX : 000000280000000000000000000000000000133700000000003410138001144fd71e24cc0004080320020801
<- RX : 0000002800000000003410138001144fd71e24cc000000000000000000000000000013370006083510052002
StartSessionConfirm --> NOT_ALLOWED
{"time":"2020-07-09T15:01:59.978Z","data":{"type":"Buffer","data":[0,0,0,40,0,0,0,0,0,52,16,19,128,1,20,79,215,30,36,204,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,55,0,6,8,53,16,5,32,2]},"kind":53,"msg":{"operation":{"type":"Buffer","data":[8,53,16,5,32,2]},"command":{"type":"Buffer","data":[]},"reference":2,"type":53,"result":"NOT_ALLOWED"},"result":{"error":"NOT_ALLOWED","kind":"","data":""},"error":"NOT_ALLOWED"}
Any idea what went wrong? I don't see a new client in the Zehnder App (Manage Clients). So the registration failed. This is my settings.json:
{
"pin": 1234,
"uuid" : "00000000000000000000000000000005",
"device" : "Computer",
"multicast": "192.168.1.255",
"comfoair": "192.168.1.113",
"debug": true
}
Hallo Herr Jones,
the double bracket is cause some issue with the iobroker adapter from klein0r
this works for me.
console.log('** starting reconnection -> ' + config.getTimestamp());
node-comfoairq/lib/comfoconnect.js
Line 192 in db9187c
Please add safe-buffer
to dependencies
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.