- Platform information:
- Hardware: Raspberry Pi 3 Model B Rev 1.2
- OS: Raspbian GNU/Linux 10 (buster)
- Java Runtime Environment: which java platform is used and what version
- openHAB version: openHAB 2.5.10-1 (Release Build)
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.
val mailActions = getActions("mail","mail:smtp:samplesmtp") rule "EmailPinku" when Item Presence_Mobile_pinku changed from OFF to ON then mailActions.sendMail("email@example.com", "Pinku is home", "This email is to let you know that Pinku is about") end
Thing mail:smtp:samplesmtp [ hostname="pinku.mynetwork.home", sender="firstname.lastname@example.org", security="PLAIN", username="pinku" ]
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.