smarthomej / addons

SmartHome/J addons for openHAB
Eclipse Public License 2.0
59 stars 24 forks source link

[knx] fix write blocked forever after read #299

Closed J-N-K closed 2 years ago

J-N-K commented 2 years ago

After a read request from the bus the next command from openHAB was not written to the bus in control channels (independent of the time span between the read request and the command). This was introduced to suppress loops but effectively blocked valid write attempts, too. This PR replaces the Map with an expiring cache that removes the block after a second. This should be enough to suppress echos and also allow sending commands.