2016-03-13 18:29:49.935 [INFO ] [g.openhab.io.net.exec.ExecUtil] - executed commandLine ‘echo 100’
2016-03-13 18:29:49.943 [INFO ] [rg.openhab.model.script.D.temp] - value of tem_room is:{}
2016-03-13 18:29:49.949 [WARN ] [.c.i.events.EventPublisherImpl] - given new state is NULL, couldn’t post update for ‘room_temp’
with the following rule
rule “Display temperature”
when
Item room_temp received update or
Item room_temp received changed or
System started
then
var String tem_room=executeCommandLine(“echo 100”)
logInfo(“D.temp”,“value of tem_room is:{}”,tem_room)
postUpdate(room_temp,tem_room)
end
Well, part of what is wrong is result will never equal the boolean constant false. It might equal the String “false”. executeCommandLine always returns a String.
If that isn’t it, I suggest logging what the script is actually returning. There might be an error message in there or something.