I have migrated a running environment from OH 2.3.0 to 2.4.0.
Before the migration this issue was not existent.
Here a snipplet of my rule:
rule "StudyRoom Top Lamp togglee"
when
Channel "homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON" triggered SHORT_PRESSED or
Channel "homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON" triggered DOUBLE_PRESSED
then
lightTimerManager.apply(StudyRoomLightTop, null, lightManager, if (toggleLight.apply(StudyRoomLightTop, lightManager)) FORGOT_TIMEOUT else -1 , lightTimers, lightTimersExpiration)
end
Without going into detail of this rule, if my homematic switch is pressed short or double the study room light toggles on/off.
The problem I have since the upgrade is that after a period of time (e.g. 24h) the rule is not reacting on these events.
I have enable logging to TRACE:
openhab> log:set TRACE org.openhab.binding.homematic
openhab> log:set TRACE smarthome.event
getting:
2019-02-09 17:12:38.850 [vent.ChannelTriggeredEvent] - Received event of type 'ChannelTriggeredEvent' under the topic 'smarthome/channels/homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON/triggered' with payload: '{"event":"SHORT_PRESSED","channel":"homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON"}'
2019-02-09 17:12:38.852 [vent.ChannelTriggeredEvent] - homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON triggered SHORT_PRESSED
2019-02-09 17:12:41.573 [vent.ChannelTriggeredEvent] - Received event of type 'ChannelTriggeredEvent' under the topic 'smarthome/channels/homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON/triggered' with payload: '{"event":"SHORT_PRESSED","channel":"homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON"}'
2019-02-09 17:12:41.577 [vent.ChannelTriggeredEvent] - homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON triggered SHORT_PRESSED
did restart homematic bundle too:
openhab> bundle:list | grep -i homematic
240 │ Active │ 80 │ 0.10.0.oh240 │ Eclipse SmartHome Homematic Binding
openhab> bundle:restart 240
openhab>
the result is the same.
Only when I change the rule to:
rule "StudyRoom Top Lamp togglee"
when
Channel "homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON" triggered SHORT_PRESSED or
Channel "homematic:HM-PB-6-WM55:3014F711A0001F58A992FB22:NEQ1001224:1#BUTTON" triggered DOUBLE_PRESSED or
Time cron "0 0/1 * 1/1 * ? *"
then
lightTimerManager.apply(StudyRoomLightTop, null, lightManager, if (toggleLight.apply(StudyRoomLightTop, lightManager)) FORGOT_TIMEOUT else -1 , lightTimers, lightTimersExpiration)
end
The light toggles every minute, what means the rule and the rule engine are ok
how to debug such a situation