CCU2: Low Battery notification script

Support for our english speaking visitors

Moderator: Co-Administratoren

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

CCU2: Low Battery notification script

Beitrag von chercheur » 23.11.2023, 12:11

Hello,

I'm trying for years now to get an email notification when one of my system's battery is running low but...I always failed.
I've tried various sources (including this forum with CUxD, with specific functions, with variables, etc....) but my lack of programming skills mixed with German language didn't help :-)

Would one of you be kind enough to give me a simple way to achieve this ?

What I do have:
- emails are configured and working
- 1 current battery low alert

Thanks in advance for your help !

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

Re: CCU2: Low Battery notification script

Beitrag von chercheur » 23.11.2023, 17:44

And...I'll answer to myself as it finally works :-)

Everything required is here : viewtopic.php?f=31&t=24618

1) the email add-on must be installed and working
2) in the TCL tab in the MailAddon the first line must be "set serviceliste [encoding convertfrom utf-8 [lindex $argv 1]]" without quotation marks
3) in mail template no. of your choice "$serviceliste" must be entered without quotation marks in the mail text field (what else is there is not interesting)
Use TCL must be ticked

4) the CUxD add-on must be installed : viewtopic.php?f=37&t=15298
4b) REBOOT the CCU
5) configuring CUxD was a bit unclear to me...what I did from the add-on "set" configuration page of CUxD
- go the last page "Geräte"
- From "CUxD Gerätetyp:", select "(28) System"
- Funktion: "Exec"
- and then "Gerät auf CCU erzeugen"
6) Go back to CCU GUI and go to "Teach-In Devices". You'll find an incoming message in the "inbox". Go to it and validate it.
6b) for security....I did REBOOT again

7) In the script provided on the page (first line of this post) I ensured that:
- var USE_MAIL = "yes";
- var MAIL_ID = "03"; This my my choice ! I prepared the email "03" for this purpose
var MAIL_CUXD_ID = "CUX2801001:1"; must match the created CUxD "System"

8) Of course you must create a program on the CCU that will, for example:
- condition if: system state, more or equal to 0, trigger when updated
- activity: script -> delayed by 1 sec

Again a huge thanks to alchie who wrote this procedure !

Antworten

Zurück zu „HomeMatic - english“