08.02.2024, 10:27 
		
	
	
		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.
The problem is that everytime there's a KNX telegram sending I receive a message. Which command can I use please?
Thanks.
BR
	
	
	
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)
    endThe problem is that everytime there's a KNX telegram sending I receive a message. Which command can I use please?
Thanks.
BR