Hi all,
I’m facing a strange issue with OH 4.1.0, and I’m hoping someone can shed some light on it. I recently upgraded from OH 4.0.4, and since then, I’ve noticed that my KNX items aren’t sending commands as expected. This is particularly problematic with my garage door and window contacts.
Let me walk you through my setup. I have several contact items linked to KNX channels, and I’m using a rule to aggregate their states into a summary. Here’s the rule I’m using:
plaintext
rule Garage_Contacts
when
Item TuerNord changed or Item TuerSued changed or Item Fenster_EG2_Kipp changed or Time cron “0 0/10 * ? * * *”
then
if ((TuerNord.state == OPEN) || (TuerSued.state == OPEN) || (Fenster_EG2_Kipp.state == OPEN)) {
logInfo(“RULE Garage_Contacts open:”,“Nord: " + TuerNord.state.toString +”, Sued: " + TuerSued.state.toString +", EG2: “+Fenster_EG2_Kipp.state.toString )
Garage_Tuerkontakt.sendCommand(OPEN)
} else {
logInfo(“RULE Garagecontacts closed:”,“Nord: " + TuerNord.state.toString +”, Sued: " + TuerSued.state.toString +”, EG2: "+Fenster_EG2_Kipp.state.toString )
Garage_Tuerkontakt.sendCommand(CLOSED)
}
end
From the logs, I can see that the rule is firing correctly and evaluating the contact states. However, despite the logs showing that the command is being sent to Garage_Tuerkontakt
, there’s no update on the KNX bus. This is confirmed by the lack of activity in the KNX binding debug logs.
I’ve tried enabling event log debugging, and I can see that the command is being received by the item, but it doesn’t seem to make it to the KNX bus. Here’s what the logs show:
plaintext
2023-12-25 09:40:00.941 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Garage_Tuerkontakt’ received command CLOSED
2023-12-25 09:40:00.942 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Garage_Tuerkontakt’ predicted to become CLOSED
2023-12-25 09:40:00.942 [INFO ] [openhab.event.ItemStateEvent ] - Item ‘Garage_Tuerkontakt’ shall update to CLOSED
This issue isn’t isolated to just one rule. All my contact-based rules are experiencing the same problem, which is quite concerning. I’m also using similar logic for other rooms, and none of them are working as expected. However, I do have a rule that counts open windows and sends a number item to a KNX channel, and that one works without issues. This makes me think the problem is specific to contact-type channels.
I’m really hoping someone out there has encountered this before or has some insight into what might be going wrong. I’ve spent a lot of time troubleshooting, but I’m stuck at this point. Any help would be greatly appreciated!
Cheers,
Tom