Logic Machine Forum
setting value of object without triggering script or writing on bus - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: setting value of object without triggering script or writing on bus (/showthread.php?tid=1178)



setting value of object without triggering script or writing on bus - npinguin - 15.01.2018

Hi

Is there a way to set the value of an knx object without triggering a script or writing on the bus?

Thanks
Nicky


RE: setting value of object without triggering script or writing on bus - admin - 16.01.2018

Do you mean you want to change internal object value in LM? Can you give some detail on why do you need this?


RE: setting value of object without triggering script or writing on bus - npinguin - 16.01.2018

(16.01.2018, 07:25)admin Wrote: Do you mean you want to change internal object value in LM? Can you give some detail on why do you need this?

Indeed i have created a Gateway for Yamaha devices where the commands to the Yamaha device get triggered through  Objects tagged with Yamaha which Works perfectly,

But if I sync the device state through a deamon, which is needed when the user uses his remote for instance then I end up in a loop by triggering the same command again to the Yamaha

If I do not do the status update on that object but another specific status object I cannot use check write anymore.


RE: setting value of object without triggering script or writing on bus - admin - 16.01.2018

You can use event.sender field to check what caused the script to execute. It will be either bus or a two-character string, different for scripts, user action etc.


RE: setting value of object without triggering script or writing on bus - npinguin - 16.01.2018

Ok that is indeed an option, i will try that

Thanks


RE: setting value of object without triggering script or writing on bus - npinguin - 17.01.2018

How can I determine which script triggered the update?

The two character string does not seem to be unique per script?

Thanks


RE: setting value of object without triggering script or writing on bus - admin - 17.01.2018

No, but you can set your own 2-char id by setting grp.sender field before calling any other grp functions.