Logic Machine Forum
Event address changed - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Event address changed (/showthread.php?tid=5236)



Event address changed - Domoticatorino - 08.02.2024

Hi,
I surf on the forum without success.

I have to create an event script and I have to manage the value only if it is changed. 

Code:
value = event.getvalue()

    if value == true then
    require("user.telegram")
    message = 'ALARM'
    res, err = telegram(message)
    log(res, err)
    else
  require("user.telegram")
    message = 'NOT ALARM'
    res, err = telegram(message)
    log(res, err)
    end

The problem is that everytime there's a KNX telegram sending I receive a message. Which command can I use please?

Thanks.

BR


RE: Event address changed - admin - 08.02.2024

You can use storage: https://forum.logicmachine.net/showthread.php?tid=347&pid=1707#pid1707