Send email on KNX group address change from LogicMachine #
Task #
Send email on KNX group address 1/2/2 status change with its current value.
Set SMTP server and other parameters #
Edit mail
function parameters in Scripting > Common functions.
Event script #
Add an Event script in the Scripting tab.
value = event.getvalue()
to = 'test@test.com'
subject = 'Alert'
message = 'KNX object 1/2/2 value is: ' .. tostring(value)
res, err = mail(to, subject, message)
if not res then
log(err)
end
In case sending email does not work, go to the Logs tab and check the error message returned by the mail server.