rossko57
(Rossko57)
February 13, 2020, 1:16pm
22
There’s nothing wrong with the “old” rules engine. It works for everyone else - the problem lies in your system.
You might circumvent it by redesigning your rules into a new form - or you might just reproduce the same design flaws.
From your description. you’ve got a rule(s) that is hogging rule execution threads.
I’m basing that on -
Cron triggered rules use threads from a different pool, so they’re independent.
Some kind of general system seizure would also be affecting events.log
etc.
How many rules have you got? What can you temporarily comment out to reduce the suspects? Consider adding a logInfo()
at the beginning of suspect rules to see when it starts, and another at the end to see when it exits.
rossko57
(Rossko57)
February 13, 2020, 2:03pm
23
biker:
So I switch to … modbus2
Have you many modbus Items? Do you poll them fast? There is a change in default behaviour from v1 to v2 Modbus bindings that can hammer large configurations.
If you have rules triggering on modbus Item updates they can get hammered.
5iver
(Scott Rushworth)
February 13, 2020, 2:11pm
24
Yes, the version in the stable release is what you should use. For installing Jython, I recommend this bundle, which currently includes the helper libraries…
I just submitted a PR that adds a core feature for a JythonScriptEngineFactory and it would be great to have some testers! Basically, this will allow for the installation of Jython including the core and community helper libraries through Paper UI, once the PR is merged. If you’d like to test it, you’ll need to…
Have OH 2.5.x (S1778) or newer
Shutdown OH
Backup OH
Download the addon and copy to $OPENHAB_HOME/addons/ (see here for more details). The jar contains the core and community helper l…
I’d be curious about your results, but I doubt changing the rule engine will change anything. And if everything worked properly, there would still be an underlying issue that was not understood. Chances are it is a configuration issue, but there could also be a bug. At the same time though, the new rule engine will be what is used in OH 3.0, so now is a good time to migrate.
1 Like
biker
(Hegau Biker)
February 13, 2020, 8:30pm
25
I have 36 modbus items with a refresh rate of 1 second. For a test I reduced the rate to 1 minute.
I have 235 rules. I also add to each rule a start and end logInfo, like…
/* *** Debug *** */
val boolean ruleStartStopLogEn = true
rule D2N_OG_Bad_HK_Stellgroesse_Ist
when
Item OG_Bad_HK_Stellgroesse_Ist changed
then
var String sRuleName = ""
if(ruleStartStopLogEn) { sRuleName = "D2N_OG_Bad_HK_Stellgroesse_Ist" }
if(ruleStartStopLogEn) { logInfo("Rule", "Start: " + sRuleName) }
[..]
if(ruleStartStopLogEn) { logInfo("Rule", "Ende: " + sRuleName) }
end
If that doesn’t work, I will migrate.
If it works… would it be possible to migrate step by step? Is it possible to have rules in the next-gen rule engine and in the “old” one?
5iver
(Scott Rushworth)
February 13, 2020, 8:52pm
26
Absolutely… it can be a phased migration! And I’ll bet that once you start, you’ll wish you had done it sooner!
rossko57
(Rossko57)
February 13, 2020, 9:04pm
27
That doesn’t seem like a “large” network for our purposes.
You might review for performance, but I doubt it is has a bearing here.
Unless you are triggering immense rules from updates! There are notes on rules design.
These notes apply to modbus binding version 2.x
This is not a Modbus how-to, but rather a tuning guide for advanced users.
Related - Modbus error management in openHAB
OpenHAB performance issues with Modbus
openHAB is often deployed on limited performance systems, and extensive use of Modbus devices can highlight limitations. That is not about Modbus technology in particular, but more about the side effects of any polling tech within openHAB.
If you have only a handful of Modbus connected O…
biker
(Hegau Biker)
February 13, 2020, 9:07pm
28
I wished I had done it already
5iver
(Scott Rushworth)
February 13, 2020, 9:09pm
29
biker:
/* *** Debug *** */
val boolean ruleStartStopLogEn = true
rule D2N_OG_Bad_HK_Stellgroesse_Ist
when
Item OG_Bad_HK_Stellgroesse_Ist changed
then
var String sRuleName = ""
if(ruleStartStopLogEn) { sRuleName = "D2N_OG_Bad_HK_Stellgroesse_Ist" }
if(ruleStartStopLogEn) { logInfo("Rule", "Start: " + sRuleName) }
[..]
if(ruleStartStopLogEn) { logInfo("Rule", "Ende: " + sRuleName) }
end
Yikes! This looks like it will work, but you could just create debug log entries and then change the logging level so that they will show in the log.
log:set DEBUG org.eclipse.smarthome.model.script
Create Log Entries in Rules
Also, SLF4J allows you to use parameterized logging, where the log entries that do not fit in the current logging level will not be processed. Meaning, you can put really complicated stuff in your debug log entry, but it won’t be processed when logging is set to INFO. However, the + operator will always be processed, so best not to use it.
/* *** Debug *** */
rule D2N_OG_Bad_HK_Stellgroesse_Ist
when
Item OG_Bad_HK_Stellgroesse_Ist changed
then
val String sRuleName = "D2N_OG_Bad_HK_Stellgroesse_Ist"
logDebug("Rule", "Start: {}", sRuleName)
[..]
logDebug("Rule", "Ende: {}", sRuleName)
end
1 Like
biker
(Hegau Biker)
February 14, 2020, 7:37pm
30
Some rules are working and others stopps. But in the log files I can’t see any reason.
An rule which has stopped is followed:
/* *** Debug *** */
val boolean ruleStartStopLogEn = true
rule OutTemp
when
Item UG_TECHNIK_FW_Aussentemperatur_C changed or
Item Out_Temp_Quadra changed or
Item Out_Temp_VonQuadraEnable changed
then
var String sRuleName = ""
if(ruleStartStopLogEn) { sRuleName = "OutTemp" }
if(ruleStartStopLogEn) { logInfo("Rule", "Start: {}", sRuleName) }
var Number newTemp = -1
// aktuelle Temperatur holen
if (Out_Temp_VonQuadraEnable.state == ON)
{
// Temperatur von Quadra abfragen
if (Out_Temp_Quadra.state instanceof DecimalType)
{
newTemp = Out_Temp_Quadra.state as DecimalType
}
}
else
{
// Temperatur von Fernwärme abfragen
if (UG_TECHNIK_FW_Aussentemperatur_C.state instanceof DecimalType)
{
newTemp = UG_TECHNIK_FW_Aussentemperatur_C.state as DecimalType
}
}
if (newTemp != -1)
{
// auf eine gerade Nachkommastelle runden
newTemp = Math::round(newTemp.floatValue/0.2)*0.2
// alter Wert holen
if (Out_Temp.state instanceof DecimalType)
{
val Number oldTemp = Out_Temp.state as DecimalType
var Number dif = 0.0
// Differenz bilden
if (newTemp > oldTemp)
dif = newTemp - oldTemp
else
dif = oldTemp - newTemp
if (dif >= 0.2) // nur bei Differenz >= 0.2
{
Out_Temp.sendCommand(newTemp)
logInfo("Fernwärme", "Out_Temp aktualisiert. Wert <" + newTemp + "°C> diff <" + dif + ">")
}
}
else
{
// Update durchführen
Out_Temp.sendCommand(newTemp)
logInfo("Fernwärme", "Out_Temp konnte nicht gelesen werden, daher ohne Differenzbildung auf <" + newTemp + "°C> gesetzt")
}
}
if(ruleStartStopLogEn) { logInfo("Rule", "Ende: {}", sRuleName) }
end
The rule is running for about 8 hours before stopping. 113 times.
2020-02-13 23:03:29.385 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:03:29.403 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:04:13.232 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:04:13.244 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:04:13.697 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'OutTemp': The name 'ruleStartStopLogEn' cannot be resolved to an item or type; line 152, column 5, length 18
2020-02-13 23:16:13.948 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:16:13.976 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:17:22.174 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:17:22.193 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:20:48.697 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:20:48.721 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:20:48.770 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:20:48.790 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:23:20.920 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:23:20.969 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:27:54.311 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:27:54.321 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:32:53.695 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:32:53.708 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:37:55.136 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:37:55.159 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:42:05.510 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:42:05.521 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:42:55.484 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:42:55.493 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:47:54.895 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:47:54.908 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:52:55.267 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:52:55.282 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:54:06.365 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:54:06.381 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-13 23:57:54.639 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-13 23:57:54.658 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:02:55.030 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:02:55.054 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:07:55.533 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:07:55.547 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:10:08.036 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:10:08.075 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:17:55.338 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:17:55.369 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:22:10.327 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:22:10.379 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:22:55.600 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:22:55.633 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:27:55.019 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:27:55.048 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:32:55.341 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:32:55.356 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:37:54.745 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:37:54.769 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:42:55.115 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:42:55.141 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:47:55.504 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:47:55.524 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:52:54.886 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:52:54.906 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 00:57:55.290 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 00:57:55.316 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:02:54.653 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:02:54.664 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:11:23.549 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:11:23.592 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:12:55.437 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:12:55.463 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:22:55.253 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:22:55.266 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:27:55.622 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:27:55.635 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:31:28.792 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:31:28.810 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:32:55.002 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:32:55.018 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:37:55.381 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:37:55.416 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:42:54.741 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:42:54.755 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:43:31.762 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:43:31.786 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:47:55.191 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:47:55.208 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:52:55.517 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:52:55.533 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 01:57:54.907 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 01:57:54.923 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:02:55.290 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:02:55.309 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:07:54.711 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:07:54.739 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:12:39.365 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:12:39.385 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:12:55.069 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:12:55.088 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:17:55.473 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:17:55.499 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:22:54.831 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:22:54.849 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:27:55.220 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:27:55.236 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:32:54.627 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:32:54.655 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:37:55.044 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:37:55.060 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:42:55.380 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:42:55.395 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:47:54.784 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:47:54.808 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:52:55.160 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:52:55.176 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 02:57:55.570 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 02:57:55.584 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:02:54.924 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:02:54.934 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:07:55.336 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:07:55.366 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:12:54.066 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:12:54.183 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:12:54.692 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:12:54.708 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:17:55.138 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:17:55.164 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:22:55.474 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:22:55.509 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:27:54.885 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:27:54.915 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:32:55.242 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:32:55.257 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:37:54.644 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:37:54.665 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:42:55.011 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:42:55.025 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:47:55.430 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:47:55.459 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:52:54.784 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:52:54.809 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:54:06.522 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:54:06.554 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 03:57:55.212 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 03:57:55.232 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:02:08.500 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:02:08.541 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:02:55.558 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:02:55.567 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:07:54.946 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:07:54.959 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:10:11.514 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:10:11.542 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:12:55.388 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:12:55.399 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:17:54.711 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:17:54.723 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:18:14.898 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:18:14.931 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:22:55.102 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:22:55.113 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:26:17.055 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:26:17.075 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:27:55.518 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:27:55.537 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:30:38.049 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:30:38.087 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:37:55.262 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:37:55.273 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:38:20.103 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:38:20.141 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:42:54.675 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:42:54.688 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:47:22.475 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:47:22.502 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:52:55.450 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:52:55.460 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 04:59:25.448 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 04:59:25.506 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:02:55.195 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:02:55.212 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:07:54.580 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:07:54.596 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:12:54.965 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:12:54.975 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:15:29.783 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:15:29.801 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:17:55.376 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:17:55.399 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:22:54.734 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:22:54.747 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:27:55.143 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:27:55.165 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:32:55.538 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:32:55.548 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:37:54.940 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:37:54.963 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:42:55.285 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:42:55.296 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:47:54.672 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:47:54.685 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:51:38.793 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:51:38.815 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:52:55.055 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:52:55.065 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 05:57:55.470 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 05:57:55.490 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:02:54.868 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:02:54.883 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:07:55.234 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:07:55.266 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:08:42.939 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:08:42.962 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:12:55.614 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:12:55.632 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:17:55.994 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:17:56.008 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:20:47.169 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:20:47.190 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:22:56.415 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:22:56.430 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:27:55.778 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:27:55.816 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:32:50.216 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:32:50.246 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:32:56.157 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:32:56.169 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:37:56.578 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:37:56.594 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:42:55.924 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:42:55.935 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
2020-02-14 06:44:53.223 [INFO ] [.eclipse.smarthome.model.script.Rule] - Start: OutTemp
2020-02-14 06:44:53.247 [INFO ] [.eclipse.smarthome.model.script.Rule] - Ende: OutTemp
the item changes doesn’t stop. One of the three items I picked out…
2020-02-13 22:57:09.990 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from NULL to 3.8
2020-02-13 23:17:22.190 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 3.80000000 to 3.90000000
2020-02-13 23:41:59.739 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 3.90000000 to 4.00000000
2020-02-13 23:54:06.375 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.00000000 to 4.10000000
2020-02-14 00:10:08.052 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.10000000 to 4.20000000
2020-02-14 00:22:10.325 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.20000000 to 4.30000000
2020-02-14 01:11:23.548 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.30000000 to 4.40000000
2020-02-14 01:31:28.793 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.40000000 to 4.50000000
2020-02-14 01:43:31.774 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.50000000 to 4.60000000
2020-02-14 02:12:39.363 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.60000000 to 4.70000000
2020-02-14 03:12:54.142 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.70000000 to 4.80000000
2020-02-14 03:54:06.535 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.80000000 to 4.70000000
2020-02-14 04:02:08.511 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.70000000 to 4.60000000
2020-02-14 04:10:11.521 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.60000000 to 4.50000000
2020-02-14 04:18:14.898 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.50000000 to 4.40000000
2020-02-14 04:26:17.071 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.40000000 to 4.30000000
2020-02-14 04:30:38.061 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.30000000 to 4.20000000
2020-02-14 04:38:20.101 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.20000000 to 4.10000000
2020-02-14 04:47:22.481 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.10000000 to 4.00000000
2020-02-14 04:59:25.475 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.00000000 to 3.90000000
2020-02-14 05:15:29.791 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 3.90000000 to 3.80000000
2020-02-14 05:51:38.810 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 3.80000000 to 3.90000000
2020-02-14 06:08:42.946 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 3.90000000 to 4.00000000
2020-02-14 06:20:47.181 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.00000000 to 4.10000000
2020-02-14 06:32:50.227 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.10000000 to 4.20000000
2020-02-14 06:44:53.206 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.20000000 to 4.30000000
2020-02-14 07:03:00.021 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.30000000 to 4.40000000
2020-02-14 07:13:00.019 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.40000000 to 4.50000000
2020-02-14 08:03:00.044 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.50000000 to 4.40000000
2020-02-14 08:33:00.024 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.40000000 to 4.30000000
2020-02-14 09:13:00.038 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.30000000 to 4.40000000
2020-02-14 09:23:00.055 [vent.ItemStateChangedEvent] - UG_TECHNIK_FW_Aussentemperatur_C changed from 4.40000000 to 4.50000000
…I will put this rules to time triggered rules and than switch step by step to the next-rule gen engine.
5iver
(Scott Rushworth)
February 14, 2020, 7:45pm
31
Are you running on an SD card? If so, when was the last time you replaced it?
rossko57
(Rossko57)
February 14, 2020, 8:28pm
32
Note that a rule that “stops” is not necessarily any kind of problem. Some other rule may have gobbled up all the available threads, meaning others cannot start.
Looks like a big clue. “That can’'t happen” of course, because the variable is defined as the rules file is initialised. Except it is happening - so it tells us your rule file(s) is reloading.
What’s going on in your openhab.log
, is that a filtered view we are looking at?
I suspect one of two things that seem to afflict some 2.5 users - one has to do with a messed up addons.config
, the other is to do with Things changing and causing “system started” events.
biker
(Hegau Biker)
February 14, 2020, 9:12pm
33
No, I running on an HDD over the USB3-Port. I think that should be fine.
Yes, but I don’t now why the error occurs. In the openhab.log I don’t see any reloading files outside I restart openhab or change the rules manually.
I started the next-gen rule engine … and it seems to work
2020-02-14 22:07:36.263 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/etc/openhab2/automation/jsr223/python/personal/hello_world.py
2020-02-14 22:07:39.520 [DEBUG] [jsr223.jython.core.triggers ] - when: target=[Time cron 0/10 * * * * ?], target_type=Time, trigger_target=cron, trigger_type=0/10 * * * * ?, old_state=None, new_state=None
2020-02-14 22:07:40.237 [DEBUG] [jsr223.jython.core.triggers ] - when: Created cron_trigger: [Time_cron_0_10_0884a8cf4f6e11eaa917dca6320af300]
2020-02-14 22:07:40.244 [DEBUG] [jsr223.jython.core.rules ] - Added rule [Jython Hello World (cron decorators)]
2020-02-14 22:07:40.317 [DEBUG] [le.handler.GenericCronTriggerHandler] - Scheduled cron job '0/10 * * * * ?' for trigger 'Time_cron_0_10_0884a8cf4f6e11eaa917dca6320af300_08e20b0f4f6e11ea94a9dca6320af300'.
2020-02-14 22:07:50.316 [DEBUG] [e.automation.internal.RuleEngineImpl] - The trigger 'Time_cron_0_10_0884a8cf4f6e11eaa917dca6320af300_08e20b0f4f6e11ea94a9dca6320af300' of rule 'c8f3842a-22e4-4f4b-9337-8a608b86073d' is triggered.
2020-02-14 22:07:50.335 [INFO ] [Jython Hello World (cron decorators)] - Hello World!
2020-02-14 22:07:50.338 [DEBUG] [e.automation.internal.RuleEngineImpl] - The rule 'c8f3842a-22e4-4f4b-9337-8a608b86073d' is executed.
rossko57
(Rossko57)
February 14, 2020, 9:23pm
34
Well, it’s up to you. I wouldn’t be initiating major changes to an obviously sick system without some idea of what’s wrong. Good luck.
biker
(Hegau Biker)
February 14, 2020, 9:25pm
35
When i update the hello_world.py
file, I can’t see that the is reloaded.
Can I reload it manually or do I have to restart openhab completely?
5iver
(Scott Rushworth)
February 14, 2020, 9:29pm
36
I’m not sure what you mean. When you touch or save a script, it will reload just as with the old rule engine.
biker
(Hegau Biker)
February 15, 2020, 12:26pm
37
Sorry, my mistake I changed a hello_world.py
-file, but one which was not in the folder openhab2-conf\automation\jsr223\python\personal\
It seems to work great, so I will move step by step now. Thanks!
1 Like
biker
(Hegau Biker)
April 12, 2020, 7:05pm
38
Yesterday I had the time to go on a step. I also update the openhab.
Now the version openHAB 2.5.3-1 (Release Build)
is running
…but when I start openhab I got following error message
2020-04-12 10:33:28.250 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.core.automation.module.script.scriptenginefactory.jython-2.5.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.core.automation.module.script.scriptenginefactory.jython [203]
Unresolved requirement: Import-Package: org.openhab.core.automation.module.script; version="[2.5.0,3.0.0)"
I tried following but without success:
Is there a new org.openhab.core.automation.module.script.scriptenginefactory.jython-2.5.0-SNAPSHOT.jar
or ``org.openhab.core.model.script-2.5.0-SNAPSHOT.jar` to download?
Thanks a lot
jswim788
(John Schmitz)
April 12, 2020, 7:11pm
39
Why are you trying to install that jar? Do you need the headers for the http actions? That’s the only reason to install it.
Anyway, what do you see when you list the bundles on the console?
bundle:list -s | grep script
I have:
173 x Active x 80 x 2.5.0 x org.openhab.core.model.script.ide
174 x Active x 80 x 2.5.0 x org.openhab.core.model.script.runtime
203 x Active x 80 x 2.5.0.202001221001 x org.openhab.core.automation.module.script.scriptenginefactory.jython
260 x Active x 80 x 2.5.0 x org.openhab.core.automation.module.script
261 x Active x 80 x 2.5.0 x org.openhab.core.automation.module.script.rulesupport
276 x Active x 75 x 2.5.3 x org.openhab.transform.javascript
289 x Active x 80 x 2.5.0.201912191214 x org.openhab.core.model.script
5iver
(Scott Rushworth)
April 12, 2020, 9:31pm
40
If you have the beta Jython bundle in addons, this is normal after the cache has been cleared… just wait a minute and the dependencies should be resolved and everything will work. If not, restart OH again.
The org.openhab.core.model.script-2.5.0-SNAPSHOT.jar
is no longer needed after 2.5.0 stable and has been removed from the Google Drive link. There have been a few updates to the org.openhab.core.automation.module.script.scriptenginefactory.jython-2.5.0-SNAPSHOT.jar
, but nothing really important unless you use third party modules.
1 Like
biker
(Hegau Biker)
April 13, 2020, 7:11pm
41
5iver:
If you have the beta Jython bundle in addons, this is normal after the cache has been cleared… just wait a minute and the dependencies should be resolved and everything will work. If not, restart OH again.
Thank you, yes you are right. Now it works.