Open snowdd1 opened 7 years ago
Does anybody want to have that?
If you want to trigger an action you do a write to a GA. What's an example use case for triggering based on read telegrams?
Sorry, I might have expressed unclearly:
Not the Read Telegram
is the trigger, but the Answer Telegram
. Example: My GIRA homeserver sends a READ
every X minutes to my gas boiler to get the current temperature of the floor heating water. The answer of the boiler is an ANSWER
telegram, that is processed in homebridge-knx just as an WRITE
telegram. (See here)
I was just thinking about cases in which you want an action based on WRITE
but not on ANSWER
.
I could think of a door contact that is polled regularly by an alarm device (READ --> ANSWER) to check for tampering and such, and that is actually sending an active WRITE
on status changes.
I get it now. And yes, for completeness sake, replies (answers) should definitely be handled differently than direct status change writes.
In case of HomeKit automations this situation would screw up any automation that is based on accessory control - i.e. 'do this, when this happens' - if answers are treated the same as writes.
In case you want to trigger an action with the Listen address, you probably do not want to trigger it upon responses coming from answers to Read type telegrams, especially if the READ telegram was sent by another bus client, and not homebridge-knx.