Script not triggering - 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: Script not triggering (/showthread.php?tid=231) |
Script not triggering - zoltan - 29.02.2016 Hello, I have a couple of this exact script running (8). The total number of scripts is around 60, but most are one or two liners, no timers, wait, delay etc. All of them are working except this one, the script is enabled and the group address is of the correct data type. What can I do to clear the problem? System: CPU/IO: 0.52 0.58 0.57, Memory: 10%, KNX/TP: OK, error log is empty. Code: --SPV_act='15/5/3' -- ovdje salje vrijednost SPV RE: Script not triggering - admin - 29.02.2016 Check what kind of variable you have in 'Vremenski_hodnik_kat1_enable' storage. As you have strict checks against true / false, for example, if your variable is set to 1, it will fail both checks. In Lua (1 == true) and (1 == false) are both false. For less strict checks, you can add toboolean conversion: http://openrb.com/docs/lua.htm#toboolean RE: Script not triggering - zoltan - 29.02.2016 Thanks Admin, you nailed it! Checked the variable type - the receiving group is "switch", but it's not the problem. The problem was in the variable name. I deliberately wrote the scripts to be identical with differences in the variable declaration part only. So that I can copy/paste them without errors. Somehow my copy paste didn't worked and ended with different variable names in two connected scripts. Stupid error, should found it myself on the first run, heh! |