Just started with MQTT 2.4 and I have window contact sensors that send a code 1D280A when open, and 1D280E when closed to the Sonoff RF bridge. The RF bridge in my things file for received RF data is
Type string : receiveddata "Received Data" [ stateTopic="tele/sonoff/bridge1/RESULT", transformationPattern="JSONPATH:$.RfReceived.Data"]
How do i create a rule that reads the incoming data and shows in the Paper UI and sitemap that the window is open or closed? I have learnt the open and close codes to key 1 and 2 of the RF bridge but I suspect thats completely unnecessary for contact sensors like these?
I have not actually put up a sitemap yet as I have not finalised its design. How would you do a MAP transformation in this instance? Do you mean a rule is not needed?
sorry, what do you mean by use the binding? in things, items?
This is only for 1 contact sensor, and I believe I can connect quite a number of sensors to each Sonoff RF bridge. How do I differentiate and label them?
Exactly the same as before. Under the “RF bridge received data: 1D280E” when contact is closed and “RF bridge received data: 1D280A” when contact is open. All this under Paper UI
Sometime after making a change to a file OH needs to stop and restart. You might want to try stopping and restart OH to see if that makes a difference.
Do you mean the transform folder under conf, or is the transformation folder somewhere else?
When I place the windows.js file in the transform folder(and changed the thing), I get this error
[WARN ] [l.generic.ChannelStateTransformation] - Transformation service JS for pattern windows.js not found!