Simplified Jython rule definition (similar to Rules DSL) using a universal decorator

I’ve never seen or heard of that one! If you are sure there are no other script files that could have that rule in it, try deleting the rule in Paper UI. If it happens again, please let me know and we’ll get an issue opened. If it is an issue though, it may be resolved in a newer build.

No indeed, here is a complete log. At 14:35:22 I touched the startup_delay.py script.

2019-05-22 14:33:59.379 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.50.224
2019-05-22 14:33:59.403 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 10.4.41.53
2019-05-22 14:33:59.412 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 172.22.64.33
2019-05-22 14:33:59.503 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 10.0.75.1
2019-05-22 14:34:04.064 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.50.224
2019-05-22 14:34:04.093 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 10.4.41.53
2019-05-22 14:34:04.102 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 172.22.64.33
2019-05-22 14:34:04.181 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 10.0.75.1
2019-05-22 14:34:10.385 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'astro.items'
2019-05-22 14:34:12.903 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2019-05-22 14:34:13.718 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://172.25.16.46:8080
2019-05-22 14:34:13.719 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://172.25.16.46:8443
2019-05-22 14:34:14.104 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
2019-05-22 14:34:14.214 [INFO ] [openhab.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2019-05-22 14:34:14.283 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2019-05-22 14:34:14.289 [DEBUG] [org.openhab.core.automation         ] - BundleEvent STARTING - org.openhab.core.automation
2019-05-22 14:34:14.303 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.RuleProvider, org.openhab.core.automation.ManagedRuleProvider}={service.id=362, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.ManagedRuleProvider, component.id=206} - org.openhab.core.automation
2019-05-22 14:34:14.314 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.events.EventFactory}={service.id=363, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.internal.RuleEventFactory, component.id=208} - org.openhab.core.automation
2019-05-22 14:34:14.322 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=364, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.internal.module.factory.CoreModuleHandlerFactory, component.id=211} - org.openhab.core.automation
2019-05-22 14:34:14.329 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=365, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.internal.module.handler.TimerModuleHandlerFactory, component.id=212} - org.openhab.core.automation
2019-05-22 14:34:14.333 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.parser.Parser}={service.id=366, service.bundleid=209, service.scope=bundle, parser.type=parser.module.type, component.name=org.openhab.core.automation.internal.parser.gson.ModuleTypeGSONParser, format=json, component.id=214} - org.openhab.core.automation
2019-05-22 14:34:14.342 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.parser.Parser}={service.id=367, service.bundleid=209, service.scope=bundle, parser.type=parser.rule, component.name=org.openhab.core.automation.internal.parser.gson.RuleGSONParser, format=json, component.id=215} - org.openhab.core.automation
2019-05-22 14:34:14.346 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.parser.Parser}={service.id=368, service.bundleid=209, service.scope=bundle, parser.type=parser.template, component.name=org.openhab.core.automation.internal.parser.gson.TemplateGSONParser, format=json, component.id=216} - org.openhab.core.automation
2019-05-22 14:34:14.351 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.osgi.util.tracker.BundleTrackerCustomizer}={service.id=369, service.bundleid=209, service.scope=bundle, Parser.target=(parser.type=parser.rule), Provider.target=(provider.type=bundle), component.name=org.openhab.core.automation.internal.provider.AutomationResourceBundlesTracker, component.id=217} - org.openhab.core.automation
2019-05-22 14:34:14.436 [DEBUG] [.AutomationResourceBundlesEventQueue] - Process bundle event 2, for automation bundle 'org.openhab.core.automation' 
2019-05-22 14:34:14.440 [DEBUG] [.AutomationResourceBundlesEventQueue] - Process bundle event 32, for automation bundle 'org.openhab.core.automation.module.script.rulesupport' 
2019-05-22 14:34:14.447 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.template.RuleTemplateProvider, org.eclipse.smarthome.core.common.registry.Provider}={service.id=370, provider.type=bundle, service.bundleid=209, service.scope=bundle, Parser.target=(parser.type=parser.template), component.name=org.openhab.core.automation.internal.provider.TemplateResourceBundleProvider, component.id=219} - org.openhab.core.automation
2019-05-22 14:34:14.450 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider}={service.id=371, service.bundleid=209, service.scope=bundle, Parser.target=(parser.type=parser.module.type), component.name=org.openhab.core.automation.internal.provider.file.ModuleTypeFileProviderWatcher, component.id=220} - org.openhab.core.automation
2019-05-22 14:34:14.457 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.template.RuleTemplateProvider}={service.id=372, service.bundleid=209, service.scope=bundle, Parser.target=(parser.type=parser.template), component.name=org.openhab.core.automation.internal.provider.file.TemplateFileProviderWatcher, component.id=221} - org.openhab.core.automation
2019-05-22 14:34:14.472 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider, org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=374, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.internal.module.provider.AnnotatedActionModuleTypeProvider, component.id=213} - org.openhab.core.automation
2019-05-22 14:34:14.481 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider, org.eclipse.smarthome.core.common.registry.Provider}={service.id=375, provider.type=bundle, service.bundleid=209, service.scope=bundle, Parser.target=(parser.type=parser.module.type), component.name=org.openhab.core.automation.internal.provider.ModuleTypeResourceBundleProvider, component.id=218} - org.openhab.core.automation
2019-05-22 14:34:14.482 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.provider.i18n.ModuleTypeI18nService}={service.id=373, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.internal.provider.i18n.ModuleTypeI18nServiceImpl, component.id=222} - org.openhab.core.automation
2019-05-22 14:34:14.493 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.template.TemplateRegistry, org.openhab.core.automation.internal.template.RuleTemplateRegistry}={service.id=376, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.internal.template.RuleTemplateRegistry, component.id=223} - org.openhab.core.automation
2019-05-22 14:34:14.512 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.RuleManager, org.eclipse.smarthome.core.common.registry.RegistryChangeListener}={service.id=379, service.bundleid=209, service.scope=bundle, rule.reinitialization.delay=500, component.name=org.openhab.core.automation.internal.RuleEngineImpl, component.id=207} - org.openhab.core.automation
2019-05-22 14:34:14.544 [DEBUG] [.provider.RuleResourceBundleImporter] - Parse rules from bundle 'org.openhab.core.automation' 
2019-05-22 14:34:14.545 [DEBUG] [.provider.RuleResourceBundleImporter] - Parse rules from bundle 'org.openhab.core.automation.module.script.rulesupport' 
2019-05-22 14:34:14.552 [DEBUG] [e.automation.internal.RuleEngineImpl] - ModuleHandlerFactory added CoreModuleHandlerFactory
2019-05-22 14:34:14.553 [DEBUG] [e.automation.internal.RuleEngineImpl] - ModuleHandlerFactory added TimerModuleHandlerFactory
2019-05-22 14:34:14.554 [DEBUG] [e.automation.internal.RuleEngineImpl] - ModuleHandlerFactory added AnnotatedActionModuleTypeProvider
2019-05-22 14:34:14.555 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.RuleRegistry}={service.id=378, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.internal.RuleRegistryImpl, component.id=209} - org.openhab.core.automation
2019-05-22 14:34:14.556 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.console.extensions.ConsoleCommandExtension}={service.id=380, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.internal.commands.AutomationCommandsPluggable, component.id=210} - org.openhab.core.automation
2019-05-22 14:34:14.575 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider}={service.id=381, service.bundleid=209, service.scope=singleton} - org.openhab.core.automation
2019-05-22 14:34:14.578 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.template.RuleTemplateProvider}={service.id=382, service.bundleid=209, service.scope=singleton} - org.openhab.core.automation
2019-05-22 14:34:14.580 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeRegistry}={service.id=377, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.internal.type.ModuleTypeRegistryImpl, component.id=224} - org.openhab.core.automation
2019-05-22 14:34:14.584 [DEBUG] [e.automation.internal.RuleEngineImpl] - ModuleHandlerFactory added AnnotatedThingActionModuleTypeProvider
2019-05-22 14:34:14.586 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider, org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=383, service.bundleid=209, service.scope=bundle, component.name=org.openhab.core.automation.thingsupport.AnnotatedThingActionModuleTypeProvider, component.id=225} - org.openhab.core.automation
2019-05-22 14:34:14.587 [DEBUG] [org.openhab.core.automation         ] - BundleEvent STARTED - org.openhab.core.automation
2019-05-22 14:34:14.589 [DEBUG] [openhab.core.automation.module.media] - BundleEvent STARTING - org.openhab.core.automation.module.media
2019-05-22 14:34:14.627 [DEBUG] [openhab.core.automation.module.media] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider}={service.id=384, service.bundleid=210, service.scope=bundle, component.name=org.openhab.core.automation.module.media.internal.MediaActionTypeProvider, component.id=226} - org.openhab.core.automation.module.media
2019-05-22 14:34:14.651 [DEBUG] [e.automation.internal.RuleEngineImpl] - ModuleHandlerFactory added MediaModuleHandlerFactory
2019-05-22 14:34:14.652 [DEBUG] [openhab.core.automation.module.media] - ServiceEvent REGISTERED - {org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=385, service.bundleid=210, service.scope=bundle, component.name=org.openhab.core.automation.module.media.internal.MediaModuleHandlerFactory, component.id=227} - org.openhab.core.automation.module.media
2019-05-22 14:34:14.654 [DEBUG] [openhab.core.automation.module.media] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptExtensionProvider}={service.id=386, service.bundleid=210, service.scope=bundle, component.name=org.openhab.core.automation.module.media.internal.MediaScriptScopeProvider, component.id=228} - org.openhab.core.automation.module.media
2019-05-22 14:34:14.657 [DEBUG] [openhab.core.automation.module.media] - BundleEvent STARTED - org.openhab.core.automation.module.media
2019-05-22 14:34:14.659 [DEBUG] [penhab.core.automation.module.script] - BundleEvent STARTING - org.openhab.core.automation.module.script
2019-05-22 14:34:14.662 [DEBUG] [penhab.core.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptEngineFactory}={service.id=387, service.bundleid=211, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.GenericScriptEngineFactory, component.id=229} - org.openhab.core.automation.module.script
2019-05-22 14:34:14.665 [DEBUG] [penhab.core.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptEngineFactory}={service.id=388, service.bundleid=211, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.NashornScriptEngineFactory, component.id=230} - org.openhab.core.automation.module.script
2019-05-22 14:34:14.669 [DEBUG] [penhab.core.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptEngineManager}={service.id=390, service.bundleid=211, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.ScriptEngineManagerImpl, component.id=231} - org.openhab.core.automation.module.script
2019-05-22 14:34:14.678 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Added GenericScriptEngineFactory
2019-05-22 14:34:14.680 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngineFactory details for jython (2.7.0): supports python (2.7) with file extensions [py], names [python, jython], and mimetypes [text/python, application/python, text/x-python, application/x-python]
2019-05-22 14:34:14.684 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngineFactory details for Oracle Nashorn (1.8.0_211): supports ECMAScript (ECMA - 262 Edition 5.1) with file extensions [js], names [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], and mimetypes [application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-05-22 14:34:14.685 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Added NashornScriptEngineFactory
2019-05-22 14:34:14.701 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngineFactory details for jython (2.7.0): supports python (2.7) with file extensions [py], names [python, jython], and mimetypes [text/python, application/python, text/x-python, application/x-python]
2019-05-22 14:34:14.702 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngineFactory details for Oracle Nashorn (1.8.0_211): supports ECMAScript (ECMA - 262 Edition 5.1) with file extensions [js], names [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], and mimetypes [application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-05-22 14:34:14.704 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Removed GenericScriptEngineFactory
2019-05-22 14:34:14.704 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Removed NashornScriptEngineFactory
2019-05-22 14:34:14.705 [DEBUG] [penhab.core.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.internal.ScriptExtensionManager}={service.id=389, service.bundleid=211, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.ScriptExtensionManager, component.id=232} - org.openhab.core.automation.module.script
2019-05-22 14:34:14.722 [DEBUG] [penhab.core.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptExtensionProvider}={service.id=391, service.bundleid=211, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.defaultscope.DefaultScriptScopeProvider, component.id=233} - org.openhab.core.automation.module.script
2019-05-22 14:34:14.726 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Added GenericScriptEngineFactory
2019-05-22 14:34:14.728 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngineFactory details for jython (2.7.0): supports python (2.7) with file extensions [py], names [python, jython], and mimetypes [text/python, application/python, text/x-python, application/x-python]
2019-05-22 14:34:14.728 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngineFactory details for Oracle Nashorn (1.8.0_211): supports ECMAScript (ECMA - 262 Edition 5.1) with file extensions [js], names [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], and mimetypes [application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-05-22 14:34:14.729 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Added NashornScriptEngineFactory
2019-05-22 14:34:14.730 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngineFactory details for jython (2.7.0): supports python (2.7) with file extensions [py], names [python, jython], and mimetypes [text/python, application/python, text/x-python, application/x-python]
2019-05-22 14:34:14.731 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngineFactory details for Oracle Nashorn (1.8.0_211): supports ECMAScript (ECMA - 262 Edition 5.1) with file extensions [js], names [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], and mimetypes [application/javascript, application/ecmascript, text/javascript, text/ecmascript]
2019-05-22 14:34:14.732 [DEBUG] [e.automation.internal.RuleEngineImpl] - ModuleHandlerFactory added ScriptModuleHandlerFactory
2019-05-22 14:34:14.733 [DEBUG] [penhab.core.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=392, service.bundleid=211, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.factory.ScriptModuleHandlerFactory, component.id=234} - org.openhab.core.automation.module.script
2019-05-22 14:34:14.738 [DEBUG] [penhab.core.automation.module.script] - ServiceEvent REGISTERED - {org.openhab.core.automation.type.ModuleTypeProvider}={service.id=393, service.bundleid=211, service.scope=bundle, component.name=org.openhab.core.automation.module.script.internal.provider.ScriptModuleTypeProvider, component.id=235} - org.openhab.core.automation.module.script
2019-05-22 14:34:14.740 [DEBUG] [penhab.core.automation.module.script] - BundleEvent STARTED - org.openhab.core.automation.module.script
2019-05-22 14:34:14.748 [DEBUG] [automation.module.script.rulesupport] - BundleEvent STARTING - org.openhab.core.automation.module.script.rulesupport
2019-05-22 14:34:14.760 [DEBUG] [e.automation.internal.RuleEngineImpl] - ModuleHandlerFactory added ScriptedCustomModuleHandlerFactory
2019-05-22 14:34:14.761 [DEBUG] [automation.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleHandlerFactory, org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=394, service.bundleid=212, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleHandlerFactory, component.id=237} - org.openhab.core.automation.module.script.rulesupport
2019-05-22 14:34:14.768 [DEBUG] [automation.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleTypeProvider, org.openhab.core.automation.type.ModuleTypeProvider}={service.id=395, service.bundleid=212, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleTypeProvider, component.id=238} - org.openhab.core.automation.module.script.rulesupport
2019-05-22 14:34:14.770 [DEBUG] [e.automation.internal.RuleEngineImpl] - ModuleHandlerFactory added ScriptedPrivateModuleHandlerFactory
2019-05-22 14:34:14.771 [DEBUG] [automation.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.rulesupport.internal.ScriptedPrivateModuleHandlerFactory, org.openhab.core.automation.handler.ModuleHandlerFactory}={service.id=396, service.bundleid=212, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.internal.ScriptedPrivateModuleHandlerFactory, component.id=239} - org.openhab.core.automation.module.script.rulesupport
2019-05-22 14:34:14.842 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md]}
2019-05-22 14:34:14.844 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md]}
2019-05-22 14:34:14.846 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md]}
2019-05-22 14:34:14.849 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js]}
2019-05-22 14:34:14.851 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js]}
2019-05-22 14:34:14.853 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py]}
2019-05-22 14:34:14.855 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py]}
2019-05-22 14:34:14.856 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py]}
2019-05-22 14:34:14.859 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py]}
2019-05-22 14:34:14.861 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py]}
2019-05-22 14:34:14.862 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py]}
2019-05-22 14:34:14.865 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py]}
2019-05-22 14:34:14.867 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py]}
2019-05-22 14:34:14.869 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py]}
2019-05-22 14:34:14.871 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py]}
2019-05-22 14:34:14.873 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py]}
2019-05-22 14:34:14.877 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - in queue: {groovy=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/core/000_startup_delay.groovy], md=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/community/README.md, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/groovy/community/README.md], js=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/javascript/core/000_startup_delay.js], py=[file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_DirectoryTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonBindingInfoProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonExtensionProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_StartupTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonThingTypeProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonItemChannelLinkProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonThingProvider.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/200_JythonTransform.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/components/100_OsgiEventTrigger.py, file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/personal/hello_world.py]}
2019-05-22 14:34:14.882 [DEBUG] [automation.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.rulesupport.shared.ScriptedRuleProvider, org.openhab.core.automation.RuleProvider}={service.id=397, service.bundleid=212, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.shared.ScriptedRuleProvider, component.id=241} - org.openhab.core.automation.module.script.rulesupport
2019-05-22 14:34:14.888 [DEBUG] [automation.module.script.rulesupport] - ServiceEvent REGISTERED - {org.openhab.core.automation.module.script.ScriptExtensionProvider}={service.id=398, service.bundleid=212, service.scope=bundle, component.name=org.openhab.core.automation.module.script.rulesupport.internal.RuleSupportScriptExtension, component.id=236} - org.openhab.core.automation.module.script.rulesupport
2019-05-22 14:34:14.893 [DEBUG] [automation.module.script.rulesupport] - BundleEvent STARTED - org.openhab.core.automation.module.script.rulesupport
2019-05-22 14:34:14.894 [DEBUG] [org.openhab.core.automation.rest    ] - BundleEvent STARTING - org.openhab.core.automation.rest
2019-05-22 14:34:14.903 [DEBUG] [org.openhab.core.automation.rest    ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.rest.RESTResource}={service.id=399, service.bundleid=213, service.scope=bundle, component.name=org.openhab.core.automation.rest.internal.ModuleTypeResource, component.id=242} - org.openhab.core.automation.rest
2019-05-22 14:34:14.911 [DEBUG] [org.openhab.core.automation.rest    ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.rest.RESTResource}={service.id=400, service.bundleid=213, service.scope=bundle, component.name=org.openhab.core.automation.rest.internal.RuleResource, component.id=243} - org.openhab.core.automation.rest
2019-05-22 14:34:14.919 [DEBUG] [org.openhab.core.automation.rest    ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.io.rest.RESTResource}={service.id=401, service.bundleid=213, service.scope=bundle, component.name=org.openhab.core.automation.rest.internal.TemplateResource, component.id=244} - org.openhab.core.automation.rest
2019-05-22 14:34:14.927 [DEBUG] [org.openhab.core.automation.rest    ] - BundleEvent STARTED - org.openhab.core.automation.rest
2019-05-22 14:35:22.956 [INFO ] [rt.internal.loader.ScriptFileWatcher] - Loading script 'python/core/000_startup_delay.py'
2019-05-22 14:35:26.500 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/core/000_startup_delay.py
2019-05-22 14:35:26.538 [INFO ] [tomation.jsr223.jython.startup_delay] - Checking for initialized context
2019-05-22 14:35:26.543 [INFO ] [tomation.jsr223.jython.startup_delay] - Context initialized... waiting 30s before allowing scripts to load
2019-05-22 14:35:56.545 [INFO ] [tomation.jsr223.jython.startup_delay] - Complete
2019-05-22 14:35:56.545 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - Script loaded: python/core/000_startup_delay.py

So it looks more like a problem with OpenHAB rather then the Jython installation/libraries?

I’m quite certain that this has nothing to do with the helper libraries. If you’d like to prove that, try one of the raw API rules in the hello_world.py. Running on S1597 and Fedora, I do not have this issue, so it looks to me as though it is a Windows specific OHC issue or something in your setup. I believe there was a recent change to PersistentStorage… I’ll look it up if I can reproduce here.

Do you have .items files and are they loading properly?

I looked into Paper UI and I took some snapshots: snapshots.pdf (85.0 KB).

As you can see, the same rule is mentioned twice in Paper UI but with a different ID.

When I click on them in Paper UI an edit page comes up. When I click the save-button on that page, I get “ERROR: 404 - Not Found”.

When I try to delete them in Paper UI by clicking on the bin next to them, I get the same error message. Both rules cannot be deleted from Paper UI.

When I look in the log (see snaphots.pdf mentioned above), it says that the rules are unknown or don’t exist. However, when I click my light switch (on the OpenHAB Android app on my phone) the rule is fired twice (the rule does not fire when I push the physical switch in the room, but I suppose that’s because another event is launched then: “SwLK02 changed from OFF to ON” instead of “Item ‘SwLK02’ received command ON” which is generated when I use the screen-switch on my phone).

I’ve loaded 3 items the rely on the astro binding. The binding has also been installed.
If it can help, I can also zip my current setup and send it to you via WeTransfer for example…

I uncommented the ItemStateUpdateTriggerRawAPI rule.
When touching the file it loads correctly:

2019-05-22 15:38:05.680 [INFO ] [rt.internal.loader.ScriptFileWatcher] - Loading script 'python/personal/hello_world.py'
2019-05-22 15:38:08.717 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Added ScriptEngine for language 'py' with identifier: file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/personal/hello_world.py
2019-05-22 15:38:08.810 [DEBUG] [org.openhab.core.automation         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.events.EventSubscriber}={service.id=410, service.bundleid=209, service.scope=singleton, event.topics=smarthome/items/Test_Switch_1/*} - org.openhab.core.automation
2019-05-22 15:38:08.826 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - Script loaded: python/personal/hello_world.py

I only needed to comment this line since it gave an error:

#self.log = logging.getLogger("{}.Hello World (ItemStateUpdateTrigger raw API)".format(LOG_PREFIX))
2019-05-22 15:40:03.584 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/C:/Temp/OPENHA~2/conf/automation/jsr223/python/personal/hello_world.py': NameError: global name 'logging' is not defined in <script> at line number 141

I sort of expected this, but it was worth a shot. You’ll need to restart OH then, but please let me know if this happens again.

@FredericMa, could you please post your EXTRA_JAVA_OPTS line? I don’t know the format for it in Windows.

This line has a bug…

self.log = logging.getLogger("{}.Hello World (ItemStateUpdateTrigger raw API)".format(LOG_PREFIX))

… and should be…

self.log = LoggerFactory.getLogger("{}.Hello World (ItemStateUpdateTrigger raw API)".format(LOG_PREFIX))

This is the complete EXTRA_JAVA_OPTS:

set EXTRA_JAVA_OPTS=-XX:+UseG1GC ^
  -Djava.awt.headless=true ^
  -Xbootclasspath/a:C:\Temp\OpenHAB_Jython\conf\automation\jython\jython-standalone-2.7.0.jar ^
  -Dpython.home=C:\Temp\OpenHAB_Jython\conf\automation\jython ^
  -Dpython.path=C:\Temp\OpenHAB_Jython\conf\automation\lib\python ^
  -Dfile.encoding=UTF-8

I’ve set it in the setenv.bat file in the “runtime/bin” directory.

Nevermind… got it working and reproduced the issue! Same for Javascript. I’m also wondering if this may be due to a change put in for the script load order…

1 Like
# requires rule and when imports
ruleInst1 = rule("Group Test Rule")(
            when("Time cron 10 0/1 * * * ?")
                (GroupLister("ruleInst1")))

How are multiple when clause coded here?

I can’t test this currently, but I’m pretty sure it is:

ruleInst1 = rule("Group Test Rule")(
            when("Time cron 10 0/1 * * * ?")(
            when("Member of gLights changed")
                (GroupLister("ruleInst1"))))
1 Like

Yes it is (magic)
Thanks

It’s worth reading rules.py and when.py. That is how I puzzled this out for myself.

Have fun!

Just to inform you:
Since I’ve restarted OH two days ago, I could not reproduce the issue again.

1 Like

Hi Scott,

Have found anything what could cause this problem?
Is there anything Ican test?

I’ve been working on other things, but will get to this soon. Could you please open an issue in openhab-core? Maybe someone else will get to it before I can.

@5iver let me know if you’d rather me start a new thread for this.

Now that https://github.com/openhab-scripters/openhab-helper-libraries/issues/141 has been fixed I’ve started to convert more rules over but ran into an issue where my existing DSL rules had used UoM e.g. var threshold = 20|lx.

Can something like this be done already or is there another way of doing it?

What are you planning to do with it? I don’t have anything that reports in lx, but in Jython, you can create a QuantityType like this…

test = QuantityType(u"5 W/m²")

You wouldn’t need to use unicode for lx.

Perfect, that works nicely!

I have coded some thresholds values into my rules which I use to compare to item states to determine whether an alert or action needs to be taken.

Was there any update on this?
I have exactly the same issue (Windows, python scripts fired when touched, but not on startup).