Java Runtime Environment: which java platform is used and what version
openHAB version: openHAB 2.5.10-1 (Release Build)
Hi,
I had a simple rule that sends out an email of presence when the mobile is pinged. I’ve just started experimenting with rule. It was working for a couple of days until I did an update this morning.
presence.rules
val mailActions = getActions("mail","mail:smtp:samplesmtp")
rule "EmailPinku"
when
Item Presence_Mobile_pinku changed from OFF to ON
then
mailActions.sendMail("pinku@pinku.mynetwork.home", "Pinku is home", "This email is to let you know that Pinku is about")
end
I read in the forum that the above mailActions needs a services/mail.cfg file but then I also read that mailActions is deprecated in OH2.5.1 so I’m really lost now.
Since the update this morning I get this error in the logs:
020-12-05 12:46:53.488 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'EmailPinku': 'sendMail' is not a member of 'org.eclipse.smarthome.core.thing.binding.ThingActions'; line 6, column 3, length 125
What is this actually telling me? Its as if the update caused an update of the syntax rules and now it doesn’t recognise my rule anymore. In fact, I’m not getting the emails since the update.
It is installed. As I said, the rule was successfully working prior to the update this morning. Have run sudo systemctl stop openhab2 and sudo systemctl start openhab2 and cleared the cache once too. Any other ideas?
Seems like the bug hasn’t been resolved. More importantly, I stopped receiving emails since yesterday without having done anything on the OpenHAB server (the Pi3). Hopefully, it’ll get resolved soon.