Comments (11)
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.
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.
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.
You were faster!
from homebridge-knx.
Hi Michael,
you can download an updated plugin-2.0 branch to test. Should now call onHKValueChange()
on changes.
Raoul
from homebridge-knx.
It don't look like it fix my issue so far.
I did remove my workaround and still no events.
Michael
from homebridge-knx.
did work now.
I did forget to delete the cachedAccessories file on my first try...
Michael
from homebridge-knx.
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.
see my last note...
from homebridge-knx.
sorry, the web page does not update while typing 😒
from homebridge-knx.
Ok, so that's done!
from homebridge-knx.
Related Issues (20)
- Neuer KNXSceneSelectorSwitch Handler AddIn HOT 3
- no status update on HomeKit HOT 2
- Humidity (9.007) shows wrong in Home.app HOT 4
- Controlling window covering without current and target position information
- ADDIN without reaction HOT 2
- HomeKit Sensor Status HOT 2
- strange issue with Siri voice command. HOT 1
- Question: Possibility to use KNX Address/UUID as Serialnumber HOT 1
- Question: Thermostat - How to red current temperature value with 0.1 degrees step? HOT 2
- Save the state of some lights HOT 1
- Group Address Level-2
- Question: Temperature is updated on start-up only
- How to configure devices for specific rooms HOT 4
- Lastest version of this plugin (0.3.27) can only run on an old version of homebridge >=0.4.28 <= 0.4.53 and Node 10 HOT 1
- GarageDoorOpenerAdvanced Rückmeldung Kontakt funktioniert nicht richtig HOT 12
- Homebridge Crash (AssertionError) after upgrading to v0.4.3 HOT 10
- v0.4.3 Status Jalousien HOT 5
- TypeError: Cannot read properties of undefined (reading 'knxd') HOT 1
- Deleted Property "MinValue" still throws errors after deleting/updating JSON-file. HOT 1
- KNX Typescript support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-knx.