I’m migrating to OH3 these days and have problems getting the regex functionality to extract the data I need from my RFLink setup. Does anyone have a working example with sensors and switches using RFLink?
I tried this thing, and it returns the whole string, not the temperature number. It seems as no matter what regex expression I put in, it returns the whole string.
Thing serialDevice temperatureSensor [patternMatch=“20;05;Cresta;ID=2801;."] {
Channels:
Type string : temperature [transform="REGEX:.?TEMP=(.?);.”]
}
Also, the example is wrong. In the example “on” and “off” is used instead of “onValue” and “offValue”. Also, “transform” should be “stateTransformation”. Anyone have access to fix that?