One-wire with shell script in OpenHAB 2

Hi All,

I have followed the below tutorial to add a one-wire DS18B20 temp sensor to my openhab:

The shell script works fine, I am getting the below response in the terminal:
root@raspberrypi:/opt/openhab# ./ 28-00000433cda6

I added the item to openhab:
Number Temperature_OneWire “One Wire [%.1f °C]” (Temperature, FF_Office) { exec="<[/opt/openhab/ 28-00000433cda6:1000:REGEX((.*?))]" }

Still it does not seem to work. I am getting 21.1 C in the item. I checked the log and I can only see one entry where it was changed from NULL to 21.1 no further updated at all.

Is it possible that this no longer works in OpenHAB 2.0?


One more to add. The DS18B20 sensor is a small kit with a small PCB with a LED on it. I can see that LED blinking whenever the sensor is read. When the server is running I can see the LED blink from time to time suggesting that the server fetches the data continuously.

Did u find a solution?
I search several hours… because I had the same problem and now it is working.
Open PAPER UI -> Configuration -> System
Activate “Include Legacy 1.x Bindings”: