E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Support for our english speaking visitors

Moderator: Co-Administratoren

Antworten
chercheur
Beiträge: 47
Registriert: 13.10.2015, 17:50
Hat sich bedankt: 1 Mal

E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von chercheur » 16.06.2025, 17:28

Hi,

The E-mail CCU Addon - v.1.7.6 doesn't seem to be able to adapt to the changes made by Microsoft.
The smtp.office365.com SMTP doesn't accept the "auto" setting anymore (I think).

Authentication unsuccessful, basic authentication is disabled. [AM8P189CA0023.EURP189.PROD.OUTLOOK.COM 2025-06-16T15:26:16.293Z 08DDAA397B0FE4D0]' errormsg='authentication failed (method LOGIN)' exitcode=EX_NOPERM

Would any of you have solved this problem ?

Thanks in advance !

Silverstar
Beiträge: 533
Registriert: 11.02.2020, 12:14
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 122 Mal
Danksagung erhalten: 84 Mal

Re: E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von Silverstar » 17.06.2025, 07:51

Microsoft, as others like Google, disabled the basic auth method. As long as the email add-on does not support oauth2, you will need another mail provider or switch to a different notification system, like ntfy.sh (which has a free option to use it even it's not so clear on the webpage).
https://support.microsoft.com/en-us/off ... 986499a90d
https://github.com/homematic-community/ ... /issues/26

chercheur
Beiträge: 47
Registriert: 13.10.2015, 17:50
Hat sich bedankt: 1 Mal

Re: E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von chercheur » 17.06.2025, 14:35

Indeed, thanks for confirming.
So, it looks like the email way of working must be dropped.

I searched but didn't find real examples of push configurations for RaspberryMatic.
I'm using "pushover" for my mower but...

cmjay
Beiträge: 2842
Registriert: 19.09.2012, 10:53
System: Alternative CCU (auf Basis OCCU)
Wohnort: Jottweedee
Hat sich bedankt: 320 Mal
Danksagung erhalten: 469 Mal

Re: E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von cmjay » 17.06.2025, 19:35

chercheur hat geschrieben:
17.06.2025, 14:35
I searched but didn't find real examples of push configurations for RaspberryMatic.
I'm using "pushover" for my mower but...
There are plenty of examples in this forum or easily found by internet search how to send Pushover messages via CCU script ...
Below is an example using system.Exec and wget (taken from ELV Journal "HM know-how Issue 27")

Code: Alles auswählen

string msg = "IT NEVER RAINS IN CALIFORNIA";
string MESSAGE = msg.ToUTF8().Replace(" ", "%20");
string TOKEN = "<TOKEN>";
string USERKEY = "<USERKEY>";
system.Exec("wget --no-check-certificate --post-data='token='"#TOKEN#"'&user='"#USERKEY#"'&message='"#MESSAGE#"'' http://api.pushover.net/1/messages.json");
Es kann leider nicht ganz ausgeschlossen werden, dass ich mich irre.
HmIP muss leider draussen bleiben. in Ausnahmefällen erlaubt
ACHTUNG! Per Portweiterleitung aus dem Internet erreichbare CCU-WebUI ist unsicher! AUCH MIT PASSWORTSCHUTZ! Daher: Portweiterleitung deaktivieren!

chercheur
Beiträge: 47
Registriert: 13.10.2015, 17:50
Hat sich bedankt: 1 Mal

Re: E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von chercheur » 18.06.2025, 15:35

Thank you.
I'm trying the script you posted and found the ELV journal 27.

It looks indeed super simple.
I just created a simple program trigerring the script each 10 sec for testing.

string msg = "IT NEVER RAINS IN CALIFORNIA";
string MESSAGE = msg.ToUTF8().Replace(" ", "%20");
string TOKEN = "<ay7az3rmxxxxxxxxxxxxxxxnemj>";
string USERKEY = "<uq3yxxxxxxxxxxxxxxxdqjztmjdn4>";
system.Exec("wget --no-check-certificate --post-data='token='"#TOKEN#"'&user='"#USERKEY#"'&message='"#MESSAGE#"'' http://api.pushover.net/1/messages.json");

I installed nothing else on the CCU3. No app, no system variable, nothing.
And, it doesn't work :-(

cmjay
Beiträge: 2842
Registriert: 19.09.2012, 10:53
System: Alternative CCU (auf Basis OCCU)
Wohnort: Jottweedee
Hat sich bedankt: 320 Mal
Danksagung erhalten: 469 Mal

Re: E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von cmjay » 18.06.2025, 15:43

Code: Alles auswählen

string TOKEN = "<ay7az3rmxxxxxxxxxxxxxxxnemj>";
string USERKEY = "<uq3yxxxxxxxxxxxxxxxdqjztmjdn4>";
Der vorliegenden Token und der User-Key sind nun in eines der fol-
genden Skripte anstelle der Platzhalter <TOKEN> und <USERKEY> ein-
zufügen, um Push-Nachrichten mit der Zentrale absetzen zu können.


You have to remove the brackets in your TOKEN and USERKEY ...
Es kann leider nicht ganz ausgeschlossen werden, dass ich mich irre.
HmIP muss leider draussen bleiben. in Ausnahmefällen erlaubt
ACHTUNG! Per Portweiterleitung aus dem Internet erreichbare CCU-WebUI ist unsicher! AUCH MIT PASSWORTSCHUTZ! Daher: Portweiterleitung deaktivieren!

chercheur
Beiträge: 47
Registriert: 13.10.2015, 17:50
Hat sich bedankt: 1 Mal

Re: E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von chercheur » 18.06.2025, 15:47

That's what I tried, without success. (but tx for the reply)

string msg = "IT NEVER RAINS IN CALIFORNIA";
string MESSAGE = msg.ToUTF8().Replace(" ", "%20");
string TOKEN = "ay7az3rm9xxxxxxxxxxxxxxxxxemj";
string USERKEY = "uq3ywxxxxxxxxxxxxxxxxjztmjdn4";
system.Exec("wget --no-check-certificate --post-data='token='"#TOKEN#"'&user='"#USERKEY#"'&message='"#MESSAGE#"'' http://api.pushover.net/1/messages.json");

cmjay
Beiträge: 2842
Registriert: 19.09.2012, 10:53
System: Alternative CCU (auf Basis OCCU)
Wohnort: Jottweedee
Hat sich bedankt: 320 Mal
Danksagung erhalten: 469 Mal

Re: E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von cmjay » 18.06.2025, 15:59

Works for me when executing the script in RM 3.77.7.
Copy & paste the script from my post as text without formatting and make sure that there is no mixup in the type of inverted commas.
I just created a simple program trigerring the script each 10 sec for testing.
You don't need a program for testing. Use the "Script testing" engine in your CCU3 to execute the script and see if it does what it is supposed to do.
Es kann leider nicht ganz ausgeschlossen werden, dass ich mich irre.
HmIP muss leider draussen bleiben. in Ausnahmefällen erlaubt
ACHTUNG! Per Portweiterleitung aus dem Internet erreichbare CCU-WebUI ist unsicher! AUCH MIT PASSWORTSCHUTZ! Daher: Portweiterleitung deaktivieren!

chercheur
Beiträge: 47
Registriert: 13.10.2015, 17:50
Hat sich bedankt: 1 Mal

Re: E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von chercheur » 18.06.2025, 17:06

Dammed...Notepad then Notepad++ and it works !
Tx a lot !

cmjay
Beiträge: 2842
Registriert: 19.09.2012, 10:53
System: Alternative CCU (auf Basis OCCU)
Wohnort: Jottweedee
Hat sich bedankt: 320 Mal
Danksagung erhalten: 469 Mal

Re: E-mail CCU Addon - v.1.7.6: not working with smtp.office365.com

Beitrag von cmjay » 18.06.2025, 17:12

That's why I ALWAYS use Notepad++ on Windows when it comes to coding. :wink:
Es kann leider nicht ganz ausgeschlossen werden, dass ich mich irre.
HmIP muss leider draussen bleiben. in Ausnahmefällen erlaubt
ACHTUNG! Per Portweiterleitung aus dem Internet erreichbare CCU-WebUI ist unsicher! AUCH MIT PASSWORTSCHUTZ! Daher: Portweiterleitung deaktivieren!

Antworten

Zurück zu „HomeMatic - english“