scripting - 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: scripting (/showthread.php?tid=5061) |
scripting - abby - 27.10.2023 here is the sample of code to show same status in casambi app and knx touchpad. i am having trouble in this code when i run it. RE: scripting - admin - 27.10.2023 Please read this thread, especially point nr. 4: https://forum.logicmachine.net/showthread.php?tid=2531 RE: scripting - abby - 27.10.2023 (27.10.2023, 06:50)admin Wrote: Please read this thread, especially point nr. 4: but there is no error RE: scripting - admin - 27.10.2023 It's will be in Logs not Error log. RE: scripting - abby - 27.10.2023 (27.10.2023, 07:05)admin Wrote: It's will be in Logs not Error log. RE: scripting - Zen - 31.10.2023 (27.10.2023, 07:13)abby Wrote:(27.10.2023, 07:05)admin Wrote: It's will be in Logs not Error log. After "value206 = ..." and before the first "IF" function, add this: Code: log('value206: '..value206) These will log the value of the variable value206 under the Current Logs tab. You can troubleshoot starting with this. If you have got nil values or some other errors i think you will see it here. RE: scripting - Erwin van der Zwart - 31.10.2023 You are also reading an analog value and then you have a if x == true … An analog value will not return a binary result but float/real so your if statement is incorrect.. Also a os.sleep(0) does not make sense as it does nothing.. |