After upgrading to snapshots above #1230, I’ve noticed that many of my rules are not triggered anymore.
Tried obvious things, like restart, clearing tmp and cache, and checking for syntax errors. But I had to change from “received command” to “received update”, to make the triggers work again…
So I’ve got most rules running again, but I’m having a hard time with rules regarding the new knx 2.3.0 binding. I recently upgraded from knx 1.0 to knx 2.3.0, and created all things and items through PaperUI.
My rules are not triggered anymore. Any tips or help are welcome
//HovedSov_Bryter_LED_lys//
rule LED_feedback_downlights_on
when
Item HovedsovDownlights received update ON
then
HovedsovLED2blue.sendCommand(ON)
Thread::sleep(3000)
HovedsovLED2blue.sendCommand(OFF)
end
//HovedSov_Bryter_LED_lys//
rule LED_feedback_downlights_off
when
Item HovedsovDownlights received update OFF
then
HovedsovLED1blue.sendCommand(ON)
Thread::sleep(3000)
HovedsovLED1blue.sendCommand(OFF)
end
//HovedSov_Bryter_LED_lys//
rule LED_feedback_play
when
Item SpotifyPlayerBridge_SpotifyTrackPlayerControl changed
then
if(SpotifyPlayerBridge_SpotifyTrackPlayerControl.state==PLAY){
HovedsovLED4green.sendCommand(ON)
HovedsovLED3red.sendCommand(OFF)
}
else
if(SpotifyPlayerBridge_SpotifyTrackPlayerControl.state!=PLAY){
HovedsovLED3red.sendCommand(ON)
HovedsovLED4green.sendCommand(OFF)
}
end
//HovedSov_Bryter_LED_lys//
rule LED_feedback_previous
when
Item KNX_CastHovedsov_Prev received update ON
then
HovedsovLED5green.sendCommand(ON)
Thread::sleep(3000)
HovedsovLED5green.sendCommand(OFF)
end
//HovedSov_Bryter_LED_lys//
rule LED_feedback_next
when
Item KNX_CastHovedsov_Next received update ON
then
HovedsovLED6green.sendCommand(ON)
Thread::sleep(3000)
HovedsovLED6green.sendCommand(OFF)
end
NB: The rules regarding spotify is triggered though.
log:
2018-03-21 17:38:38.928 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Read Response telegram from '1.1.30' to '2/6/36'
2018-03-21 17:38:42.685 [DEBUG] [.internal.handler.DeviceThingHandler] - Thing 'knx:device:066d0493' received a Group Write telegram from '1.1.20' for destination '1/3/0'
2018-03-21 17:38:42.692 [TRACE] [.internal.handler.DeviceThingHandler] - Thing 'knx:device:066d0493' processes a Group Write telegram for destination '1/3/0' for channel 'knx:device:066d0493:downlights_hovedsov'
2018-03-21 17:38:42.694 [TRACE] [g.knx.internal.dpt.KNXCoreTypeMapper] - toType datapoint DPT = 1.001
But no rule triggered. Usually i see KNX.item received command ON, then this triggers my rule and output actions in my openhab2.log
Yes, I have restarted several times. But I’m starting to suspect that my thing channels may be set up wrong. With the new knx binding, do I have to define everything in a .thing file like described in the docs? Or is it okay to set up through paperui like i did?
I’m just wondering, since I get a thing update in the log instead of an item update, when I press the knx buttons.
OK, cool. It’s an easy fix, so wanted to make sure!
I do not use KNX, but in reading through the doc, and based on my understanding of OH2, there should not be any requirement to configure the Things through files. The Thing file example is for people that chose to use them. Have you double checked the binding configuration in the Items? If you go into PaperUI> Configuration> Things> select the KNX Thing, and then confirm the Channels display exactly like you have in your Items. The documentation has…
Thanks for your commitment Scott. I’ve tried out your advice, but still having troubles triggering my rules.
The section you are referring to, is for the control channels. That’s when the knx bus doesn’t own the device, and want’s to control another thing, e.g: hue.
In my case, both channels in my rule are from knx devices.
I’m no expert, so I just tried a lot of things untill it just worked itself out
As i mentioned in the previous post, I used the “control” objects. After replacing the “normal” object with the control object, the triggers in my knx rules fired again. In the channel objects I only defined one GA ( only write ) if that makes a difference…