This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

scripting
#1
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.

Attached Files Thumbnail(s)
   
Reply
#2
Please read this thread, especially point nr. 4:
https://forum.logicmachine.net/showthread.php?tid=2531
Reply
#3
(27.10.2023, 06:50)admin Wrote: Please read this thread, especially point nr. 4:
https://forum.logicmachine.net/showthread.php?tid=2531

but there is no error

Attached Files Thumbnail(s)
   
Reply
#4
It's will be in Logs not Error log.
Reply
#5
(27.10.2023, 07:05)admin Wrote: It's will be in Logs not Error log.

Attached Files Thumbnail(s)
   
Reply
#6
(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.
Reply
#7
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..
Reply


Forum Jump: