Xiaomi Cube - Rule not working

Hi All,
I’ve read this thread but could not find anything that applies to my situation though the issue is similar.

Prior to upgrading to OpenHAB 2.3, I had a Xiaomi Cube rule that used to work fine but since upgrading it stopped and I get error entries in the log file.

Rule 'Xiaomi Cube': 'getEvent' is not a member of 'org.eclipse.smarthome.core.thing.events.ChannelTriggeredEvent';

I tested and the rule is triggered but “var actionName = receivedEvent.getEvent();” seems to cause the issue.

Has anything changed in 2.3?

Any help would be appreciated. Thanks in advance.

Please post the rule.

rule “Xiaomi Cube”
when
Channel ‘mihome:sensor_cube:xxxxx:xxxxxx:action’ triggered
then
var actionName = receivedEvent.getEvent();
logInfo(“RULE TEST”, “Cube event triggered”);
logInfo(“Cube”, actionName)
end

Hello all,
I don’t know what’s happened but restarting OpenHAB seems to have fixed the issue. I had done this a few times before while diagnosing the issue so I don’t understand what happened but the end result is that it is now working which is great.

I’ve been able to actually implement some actions instead of the simple test rule above.