ich benutze das smtp-binding.
Bei entsprechenden Gelegenheiten, lasse ich Rules ein entsprechendes Script ausführen, in dem z.B. steht:
Code: Alles auswählen
val mailActions = getActions("mail","mail:smtp:Mail")
val success = mailActions.sendMail("mh@domain.de", "Gefrierschrank im Keller stromlos.", "Dem Gefrierschrank im Keller wurde der Saft abgeschaltet.")
Code: Alles auswählen
2022-10-30 22:51:47.591 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'e5841b7ee0' failed: <eval>:1:4 Expected ; but found mailActions
val mailActions = getActions("mail","mail:smtp:Mail")
^ in <eval> at line number 1 at column number 4
2022-10-30 22:51:53.268 [ERROR] [e.automation.internal.RuleEngineImpl] - Failed to execute rule 'b4f6aec418': Fail to execute action: 2
2022-10-30 22:51:54.562 [ERROR] [e.automation.internal.RuleEngineImpl] - Failed to execute rule 'b4f6aec418': Fail to execute action: 2
2022-10-30 22:51:59.268 [ERROR] [e.automation.internal.RuleEngineImpl] - Failed to execute rule 'b4f6aec418': Fail to execute action: 2
Hat jemand eine Idee, woran es liegen könnte, oder was ich zur Fehlereingrenzung tun könnte?
Herzliche Grüße
Michael