meine (sonst funktionierende) Definition:
Code: Alles auswählen
val mailActions = getActions("mail","mail:smtp:samplesmtp")
val toMailAdr = "xxx@web.de" // die beiden val sind am Anfang der Datei vor den rules definiert
...
mailActions.sendMail(toMailAdr, "xxx", "xxx"); //an 3 Stellen in 2 unterschiedlichen rules
Code: Alles auswählen
2024-12-07 09:00:01.016 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'Home_Alarm-5' failed: Cannot invoke "org.openhab.binding.mail.internal.action.SendMailActions.sendMailWithAttachments(String, String, String, java.util.List)" because "actions" is null in Home_Alarm
Code: Alles auswählen
2024-12-07 09:57:17.699 [INFO ] [org.openhab.core.Activator] - Starting openHAB 4.2.3 (Release Build)
2024-12-07 09:57:19.115 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/Berlin'.
2024-12-07 09:57:19.141 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to 'x.x,x.x'.
2024-12-07 09:57:19.145 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'de_DE'.
...
2024-12-07 09:57:58.983 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Home_Alarm.rules'
2024-12-07 09:58:09.035 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'Home_Alarm.rules', using it anyway:
The field Tmp_Home_AlarmRules.mailActions refers to the missing type Object
The field Tmp_Home_AlarmRules.mailActions refers to the missing type Object
The field Tmp_Home_AlarmRules.mailActions refers to the missing type Object
...
2024-12-07 10:00:04.612 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'Home_Alarm-5' failed: Cannot invoke "org.openhab.binding.mail.internal.action.SendMailActions.sendMailWithAttachments(String, String, String, java.util.List)" because "actions" is null in Home_Alarm
2024-12-07 10:00:04.615 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.