Rule is not triggered

Although in event log the state of the item is changed, my rule is not triggered. I’m looking at this for a couple of days, and I just can’t figure it out.

When there is motion (detected by “mot_BePodMeetingRoom_Lights”), the lights (named “dim_BePod_Dim1_MeetingRoom”) should be switched on.

Can you help me ? – Ivan

bepod.rules

rule "Switch lights in meeting room"
when
        Item mot_BePod_MeetingRoom_Lights changed
then
        val switch1 = if(stat_Bravia.state == "ON") OFF else ON

        dim_BePod_Dim1_MeetingRoom.sendCommand(mot_BePod_MeetingRoom_Lights.state)
        dim_BePod_Dim1_TV.sendCommand(switch1)
end

events.log

2017-10-04 17:23:02.472 [ItemStateChangedEvent     ] - mot_BePod_MeetingRoom_Lights changed from OFF to ON
2017-10-04 17:23:02.473 [ItemCommandEvent          ] - Item 'mot_BePod_MeetingRoom_Lights' received command ON
2017-10-04 17:23:02.501 [ItemCommandEvent          ] - Item 'mot_BePod_MeetingRoom_AV' received command ON
2017-10-04 17:23:02.573 [ItemStateChangedEvent     ] - mot_BePod_MeetingRoom_AV changed from OFF to ON
2017-10-04 17:32:26.325 [ItemCommandEvent          ] - Item 'mot_BePod_MeetingRoom_Lights' received command ON
2017-10-04 17:32:26.357 [ItemCommandEvent          ] - Item 'mot_BePod_MeetingRoom_AV' received command ON
2017-10-04 17:33:48.452 [ItemStateChangedEvent     ] - mot_BePod_MeetingRoom_Lights changed from ON to OFF
2017-10-04 17:33:48.453 [ItemCommandEvent          ] - Item 'mot_BePod_MeetingRoom_Lights' received command OFF
2017-10-04 17:33:48.482 [ItemCommandEvent          ] - Item 'mot_BePod_MeetingRoom_AV' received command OFF
2017-10-04 17:33:48.554 [ItemStateChangedEvent     ] - mot_BePod_MeetingRoom_AV changed from ON to OFF

bepod.items

Dimmer dim_BePod_Dim1_MeetingRoom               "Vergaderzaal [%s]"     (grpBePod, Lights)      {knx="1/1/1+1/1/5, 1/1/3, 1/1/7+1/1/5"}
Dimmer dim_BePod_Dim1_TV                        "TV [%s]"               (grpBePod, Lights)      {knx="1/1/2+1/1/6, 1/1/4, 1/1/8+1/1/6"}
Switch mot_BePod_MeetingRoom_AV                 "Beweging verg.zaal voor A/V te schakelen"      {knx="<4/0/0"}
Switch mot_BePod_MeetingRoom_Lights             "Beweging verg.zaal voor licht te schakelen"    {knx="<0/6/3"}
String stat_Bravia { channel="exec:command:bravia-status:output" }

Add logging to your rule as the very first line to verify that the rule is triggering or if there is something else wrong with the rule?

Do you see any errors in openhab.log?

Maybe without quotes?

stat_Bravia.state == ON