Hi all,
I am on 2.5.5 stable on openHABian on a Pi3
I just moved from “mail action” to the new “mail binding”.
All setup is fine because the binding is not working only during startup. After the initial startup phase it works.
I get two different types of error:
- see 1st case: [ERROR] [ntime.internal.engine.RuleEngineImpl] - Error during the execution of startup rule ‘onStartup’: null
- see 2nd case: [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ‘ESP ANTIFURTO changed’: ‘sendMail’ is not a member of ‘org.eclipse.smarthome.core.thing.binding.ThingActions’
All my rules that run on System startup and have a sendMail are not executed.
=====Case 1=====
For example, this simple rule:
var systemStarted = new Boolean(false)
rule "onStartup"
when
System started
then
val mailActions = getActions("mail","mail:smtp:myemail")
if(! systemStarted) {
systemStarted = true
mailActions.sendMail("xxx@gmail.com", "OH2 @ OH2 just STARTED", "OH2 just STARTED")
sendNotification("xxx@gmail.com", "INFO: OH2 just started")
logInfo("startup","startup")
}
end
generates the following error in the log file:
2020-05-28 12:27:01.340 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'onStartup.rules'
2020-05-28 12:27:18.780 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Error during the execution of startup rule 'onStartup': null
=====Case 2=====
This rule is triggered during the startup phase (when the Item is updated by mqtt), see that it is triggered few seconds after the previous error:
rule "ESP ANTIFURTO changed"
when
Member of gESPAntifurto changed
then
val mailActions = getActions("mail","mail:smtp:myemail")
mailActions.sendMail("xxx@gmail.com", "Antifurto changed", "Antifurto changed")
sendNotification("xxx@gmail.com", "Antifurto changed")
end
generates this error:
2020-05-28 12:27:53.726 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'ESP ANTIFURTO changed': 'sendMail' is not a member of 'org.eclipse.smarthome.core.thing.binding.ThingActions'; line 155, column 2, length 77
2020-05-28 12:27:53.737 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'ESP ANTIFURTO changed': 'sendMail' is not a member of 'org.eclipse.smarthome.core.thing.binding.ThingActions'; line 155, column 2, length 77
Can anyone help?