Git Product home page Git Product logo

Comments (11)

misc2000 avatar misc2000 commented on July 16, 2024 1

I found a Workaround:

you need to assign to all Characteristics that you need to evaluate in the handler a even dummy KNX GA.

            {
                "ServiceType": "LockMechanism",
                "Handler": "AbusDoorLockSystem",
                "ServiceName": "Türschloss",
                "Characteristics": [
                    {
                        "Type": "LockCurrentState"
                    },
                    {
                        "Type": "LockTargetState",
                        "Set": "4/4/100",
                        "Listen": "4/4/100",
                        "DPT": "DPT1"
                    }

The KNX GA 4/4/100 do not exit in my installation but will fix the missing events issue for now!

Michael

from homebridge-knx.

misc2000 avatar misc2000 commented on July 16, 2024

After some more test with a other Device (also with a own Handler) I have the same problem.
This time I did implement a Door Lock
...
"ServiceType": "LockMechanism",
"Handler": "AbusDoorLockSystem",
"ServiceName": "Türschloss",
"Characteristics": [
{
"Type": "LockCurrentState"
},
{
"Type": "LockTargetState"
}
],
...
Status of the Lock is shown right in the HOME App when I change the status from the KNX side.
But all the time when I execute a status change command with the HOME App on the iPhone I don't get any events inside the Homebridge. :-(

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

Hi Michael,
I found it. Currently a characteristic is only bound to the change event if it has a "Set" section in the knx_config.json - which is good with the default handler. If you want to do something completely different and you never want to do a knxWrite(field, value, dptype) for that field you probably do not have a Set - as in your stubs above.
I need to fix that.
Raoul

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

You were faster!

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

Hi Michael,
you can download an updated plugin-2.0 branch to test. Should now call onHKValueChange() on changes.
Raoul

from homebridge-knx.

misc2000 avatar misc2000 commented on July 16, 2024

It don't look like it fix my issue so far.
I did remove my workaround and still no events.
Michael

from homebridge-knx.

misc2000 avatar misc2000 commented on July 16, 2024

did work now.
I did forget to delete the cachedAccessories file on my first try...
Michael

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

Did you clone the latest version?
I just rebuilt your test and it shows

  Accessory [DEVHomebridge] Setting Characteristic "Lock Target State" to value 1 +2ms
  EventedHTTPServer [::ffff:192.168.178.85] Muting event '4.10' notification for this connection since it originated here. +11ms
  DummyHandler INFO: onHKValueChange(LockTargetState, null, 1) +5s
  EventedHTTPServer [::ffff:192.168.178.85] HTTP Response is finished +6ms
  EventedHTTPServer [::ffff:192.168.178.85] HTTP request: /characteristics +2s
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics +1ms
  Accessory [DEVHomebridge] Processing characteristic set: [{"aid":4,"iid":10,"value":0}] +4ms
  Accessory [DEVHomebridge] Setting Characteristic "Lock Target State" to value 0 +1ms
  EventedHTTPServer [::ffff:192.168.178.85] Muting event '4.10' notification for this connection since it originated here. +5ms
  DummyHandler INFO: onHKValueChange(LockTargetState, 1, 0) +2s
  EventedHTTPServer [::ffff:192.168.178.85] HTTP Response is finished +3ms

I'll put the sample files into plugin-2.0 branch.

from homebridge-knx.

misc2000 avatar misc2000 commented on July 16, 2024

see my last note...

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

sorry, the web page does not update while typing 😒

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

Ok, so that's done!

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.