GithubHelp home page GithubHelp logo

herrjones / node-comfoairq Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 233 KB

Library to control a Zehnder Comfoair Q series of ventilation devices

License: GNU General Public License v3.0

JavaScript 100.00%

node-comfoairq's People

Contributors

dependabot[bot] avatar herrjones avatar klein0r avatar m-szalik avatar tomaszkoperski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-comfoairq's Issues

Cannot read property 'kind' of undefined

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.

Unable to register new app

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
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.