Everything seemed to work in openhab1 but now is broken
With the following error
2016-06-21 22:10:25.880 [ERROR] [.script.engine.ScriptExecutionThread] - Error during the execution of rule 'Weather Concat': Script interpreter couldn't be obtain
rule "Weather Concat"
when
Item forecast_temp received update or
Item weather_condition received update
then
weather_temp_cond.postUpdate(forecast_temp.state.toString + " on " + weather_condition.state.toString)
end
Is there an option to change the rule somehow to avoid this bug?
As i have these rules as well throwing out the same error
rule "sense_kitch"
when
Item sense_kitch_temp received update or
Item sense_kitch_humi received update
then
var Number Humi_kitch = sense_kitch_humi.state
var Number Temp_kitch = sense_kitch_temp.state
var Number Humi_kitch_r = (Math::round(Humi_kitch.floatValue))
var Number Temp_kitch_r = (Math::round(Temp_kitch.floatValue))
postUpdate(sense_kitch, Temp_kitch_r + " °C " + Humi_kitch_r + " %")
end
rule "sense_bigro"
when
Item sense_bigro_temp received update or
Item sense_bigro_humi received update
then
var Number Humi_bigro = sense_bigro_humi.state
var Number Temp_bigro = sense_bigro_temp.state
var Number Humi_bigro_r = (Math::round(Humi_bigro.floatValue))
var Number Temp_bigro_r = (Math::round(Temp_bigro.floatValue))
postUpdate(sense_bigro, Temp_bigro_r + " °C " + Humi_bigro_r + " %")
end
I have rewritten the rules for sense kitch and removing the special character before C at least got it updating but the same error is in the log.
rule "sense_kitch"
when
Item sense_kitch_temp received update or
Item sense_kitch_humi received update
then
var Number Humi_kitch = sense_kitch_humi.state
var Number Temp_kitch = sense_kitch_temp.state
var Number Humi_kitch_r = (Math::round(Humi_kitch.floatValue))
var Number Temp_kitch_r = (Math::round(Temp_kitch.floatValue))
sense_kitch.postUpdate(Temp_kitch_r + "C" + Humi_kitch_r + "%")
end
Log
2016-06-24 19:22:10.519 [INFO ] [marthome.event.ItemStateChangedEvent] - sense_kitch_humi changed from 44.00 to 45.00
2016-06-24 19:22:10.544 [INFO ] [marthome.event.ItemStateChangedEvent] - sense_kitch changed from 26C44% to 26C45%
2016-06-24 19:22:40.566 [ERROR] [.script.engine.ScriptExecutionThread] - Error during the execution of rule 'sense_kitch': Script interpreter couldn't be obtain
2016-06-24 19:22:40.573 [ERROR] [.script.engine.ScriptExecutionThread] - Error during the execution of rule 'sense_kitch': Script interpreter couldn't be obtain
Error during the execution of rule 'Sun is shining': Script interpreter couldn't be obtain
even on this rule
rule "Sun is shining"
when Item astro_sun_elevation received update
then
if (astro_sun_elevation.state >= 0)
{
if (openhab_day == OFF)
{
openhab_day.sendCommand(ON)
}
}
else
{
openhab_day.sendCommand(OFF)
}
end
Strangely enough - i had errors of “Script interpreter couldn’t be obtain” almost on all of my rules. They worked - but the errors were ther in the log.
After Java update from b65 (got it from debian repo) to b101 (through the java installer) i do not see any errors in the log anymore