I am using the days off from work to set up the new Openhab 3. I did not migrate, but started from scratch.
I am slowly finding my way around in the new UI.
Important for me is to get notifications on my mobile, until now I used the xmpp-binding for that and I was very happy with it.
Trying to set up a new rule with ‘DSL Script or ECMA Script’ for the notification und copy / pasting it from my old OH2 files does not work for me.
Trying the Email-Notification as an alternative with copy/paste did neither, but I did find a new syntax for the ‚ECMA-Script‘ here in the community as follows below. This works for me for succesful email notifications.
actions.get(“mail”, “mail:smtp:yoursmtp”).sendMail(“Example@gmail.com”, “openHAB 3 Alert”, “Something changed!”);
I tried adapting it to use xmpp, but this did not work for me, e.g.
actions.get(“xmpp”, “xmppclient:xmppBridge:yourxmpp").sendXMPP(“firstname.lastname@example.org”, “openHAB 3 Alert”);
What am I doing wrong?
Thanks in advance for your help!