[SOLVED] Aeotech Quad Wallmote Swipe function

I have a Aeotech Wallmote Quad and want to use the switch swipe function in a rule. I’m struggling to find how to extract the direction of the swipe from the wallmote. I have the following rule as a test

rule "quad swipe"
when Item Quad_SceneSwipe1 changed

where the item is linked to the “Swipe Switch 1” channel. This gives the following in the logInfo file

2019-11-02 14:42:01.266 [INFO ] [.eclipse.smarthome.model.script.INFO] - {"direction":"INCREASE"}

==> /var/log/openhab2/events.log <==

2019-11-02 14:42:01.332 [vent.ItemStateChangedEvent] - Quad_SceneSwipe1 changed from {"direction":"INCREASE"} to {"direction":"STOP"}

==> /var/log/openhab2/openhab.log <==

2019-11-02 14:42:01.339 [INFO ] [.eclipse.smarthome.model.script.INFO] - {"direction":"STOP"}

So my question is how do I test for the direction in my code as part of an “if” statement.
The idea is to control X-10 lighting via RFXCom using the wallmote swipe feature

Thank you

See this post. Is this what you’re looking for?

I searched for ages but was using the term “swipe” not slide :frowning:

Please mark the thread as solved, thanks