Posts: 6
Threads: 2
Joined: Feb 2018
Reputation:
0
Hello dear experts,
i need some support on eventually simple task.
I want to send e-mail to a specific user every time when the system "starts again", mainly after power failure. I have seen that there is a record on the Alert manager. It is a for of an internal (system) message and i'm struggling on how to send this exact message as e-mail Notification.
My e-mail configuration works fine. I have tested with other group object.
Common scripts are configured. i'm using the Google e-mail server.
Event script is created.
I need help with the syntax of the script.
Sincerely,
Experience, Exposure, Expertise
Posts: 5865
Threads: 35
Joined: Aug 2017
Reputation:
268
Just use Start up(init)script
------------------------------
Ctrl+F5
Posts: 6
Threads: 2
Joined: Feb 2018
Reputation:
0
30.10.2026, 08:14
(This post was last modified: 30.10.2026, 08:15 by Fotaje.)
(30.10.2026, 08:04)Daniel Wrote: Just use Start up(init)script
Thanks for the fast reply,
unfortunately it's a bit complex for me to understand.
Can you describe the process step-by-step so i can test it
Sincerely,
(30.10.2026, 08:14)Fotaje Wrote: (30.10.2026, 08:04)Daniel Wrote: Just use Start up(init)script
Thanks for the fast reply,
unfortunately it's a bit complex for me to understand.
Can you describe the process step-by-step so i can test it
Sincerely,
Ah, u mean that just to replace the Event script for Notification with initial script for notification. ? Am i geting it right ?
Experience, Exposure, Expertise
Posts: 5865
Threads: 35
Joined: Aug 2017
Reputation:
268
Init script will run once after each system starts so just send yourself an email then.
------------------------------
Ctrl+F5
Posts: 6
Threads: 2
Joined: Feb 2018
Reputation:
0
(30.10.2026, 08:18)Daniel Wrote: Init script will run once after each system starts so just send yourself an email then.
OK, i have never done it to be honest. (setting initial scripts)
This is my event Script, how to adapt it to be initial one ?
value = event.getvalue()
to = 'mymail@gmail.com'
subject = 'Alert'
message = 'KNX object 4/0/1 value is: ' .. tostring(value)
res, err = mail(to, subject, message)
if not res then
log(err)
end
Experience, Exposure, Expertise
Posts: 5865
Threads: 35
Joined: Aug 2017
Reputation:
268
As it is not event, you cannot use value = event.getvalue(), Use value = grp.getvalue('1/1/1') instead
------------------------------
Ctrl+F5