Git Product home page Git Product logo

Comments (8)

snowdd1 avatar snowdd1 commented on July 16, 2024

It shouldn't do that. Can you post the log from start to the moment it sends the value to the bus as a gist and link it here?

from homebridge-knx.

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

the problem is the read on the Set address, see the following example.
Fountain has more then 1 mapping, 9/1/9 and 1/0/0
Turn on the switch with address 9/1/9 (fountain on)
Turn off the switch with address 1/0/0 (all units off including the fountain)
restart homebridge
read is done on 9/1/9 and response 1 on the bus, because thats the last value send for 9/1/9 but the fountain is off, now its turned on.

I think reading the set address is not a good idea, reading values is for listen addresses only. Or do i think wrong?

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

You are right. This should be avoidable.
However, which device answers the 9/1/9 read with "1"? The fountain switch itself should know that it is "off", however, some other device on the bus has cached the 9/1/9 value and is answering the read request - which it shouldn't.
The fountain switch itself should switch at an ANSWER type telegram, however, as there are still devices out there that do not know about READ and ANSWER telegrams, the READ flag in ETS should be off for all devices bound to your 9/1/9 device.
I myself have old Gira Wall Panels that happily cache those values and answer if they are allowed to - but the values might be old as they are not fully configured to all multiple mappings I have.

Nevertheless, I am working on a new data model that allows to set READ and WRITE flags to all addresses, no matter where and how often they are assigned to services.

from homebridge-knx.

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

You're totally right. In the 9/1/9 group are two Berker KNX RF devices that responses on a read command even if the READ flags are off.

Very strange, so i reported this also to Hager/Berker.

from homebridge-knx.

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

Can i simple change this line in the index.js code to get only the listen addresses read on the bus?

this.knxreadarray([config.Set].concat(config.Listen || []));

maybe something like this:
this.knxreadarray(config.Listen || []);

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

Sure!

from homebridge-knx.

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

It works :)

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

I just pushed a new version 0.2.6 which contains a new flag for the config.json to switch the behavior (see https://github.com/snowdd1/homebridge-knx#syntax-of-the-configjson).
The next big version will change just everything (if I ever get that done), so stay tuned.

from homebridge-knx.

Related Issues (20)

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.