[SOLVED] Rule to show window as open or closed when wifi contact sensor sends RF data

A lot of people are starting using the Kerui D026 door sensors. I am currently implementing 6 sensors.

So, i tried using this

Type contact : kerui01		[ stateTopic="tele/WIFIRF/RESULT", 			transformationPattern="JSONPATH:$.RfReceived.Data", open="64D72E", closed="64D727" ]	

which would be ideal.

On the log it gives

2019-05-10 21:19:15.765 [WARN ] [eneric.internal.generic.ChannelState] - Command ‘64D72E’ not supported by type ‘OpenCloseValue’: No enum constant org.eclipse.smarthome.core.library.types.OpenClosedType.64D72E

Why do we need the javascript transformation ?