Logic Machine Forum
SOURCE ADDRESS - 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: SOURCE ADDRESS (/showthread.php?tid=1344)



SOURCE ADDRESS - Angeles - 19.04.2018

Hi:
I need to know the source address from an event. 
I need it because it depends on where the event comes from, I will perform one task or another

it would be something like reading the result the value of the event, but in this case it would be from whom


value = event.getaddress()!!


RE: SOURCE ADDRESS - Daniel - 19.04.2018

Code:
value = event.src
log(value)



RE: SOURCE ADDRESS - Angeles - 19.04.2018

(19.04.2018, 13:48)Daniel. Wrote:
Code:
value = event.src
log(value)

The result is 'local' I need knx source address....
Thanks


RE: SOURCE ADDRESS - Daniel - 19.04.2018

The result is local when you send telegram from LM. Send telegram from KNX and check again.


RE: SOURCE ADDRESS - Angeles - 19.04.2018

(19.04.2018, 14:08)Daniel. Wrote: The result is local when you send telegram from LM. Send telegram from KNX and check again.

Sorry , it's perfect.
Thanks