I use the Serial Binding in openhab 4. I get a value “OFF” or “ON” from an arduino. I output this value in the arduino as a serial print. The value arrives correctly and I can create a channel. Now I want to create a rule that reacts to this input signal but it does not. Which function do I have to use? If I set state from off to on, nothing is triggered.
I hope someone can give me a hint. Could it be that “OFF” is not equal to Off as a status?
Did you assign an item of type „switch“ to your channel?
If your device expects a string which has to be equal to “Off” then this would not work. Use a string item instead.
Could you please use code fences for any kind of code?