Logic Machine Forum
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=5024)

Pages: 1 2


scripting - abby - 13.10.2023

i am  having problem with bind up/ down  code to write in lua using bacnet can someone pls help me
unit id is not helping me


RE: scripting - Daniel - 13.10.2023

Sorry but it is not clear what you actually need. Explain your architecture and what are you trying to do?


RE: scripting - Ranjeet - 13.10.2023

i am having problem with Curtain open/close code to write in lua using bacnet.I need proper script for curtain open /close


RE: scripting - Daniel - 13.10.2023

Still not clear what you need but have a look here:
https://openrb.com/shutter-controller-based-on-lm5/


RE: scripting - abby - 13.10.2023

i want to control my blind in lm5 using bacnet the code is not working properly which i wrote and my blind is casa rollo which is in casambai


RE: scripting - admin - 13.10.2023

Your code has a typo in line 1 - it should be require('bacnet'). But this line is not needed at all as the script does not use any bacnet library functions.
Next time check Error log when script is not working.


RE: scripting - abby - 13.10.2023

okkk thanks i have removed it but it is still not working


RE: scripting - Daniel - 13.10.2023

Are you trying to write to bacnet device?


RE: scripting - Ranjeet - 13.10.2023

I'm controlling casambi curtain from logic machine through bacnet so I need Script where I can put BDT scanned Object ID.Then only I can control casambi Curtain Open/Close


RE: scripting - abby - 13.10.2023

(13.10.2023, 13:28)Daniel Wrote: Are you trying to write to bacnet device 
the gateway device is lithernet casambi gateway

(13.10.2023, 13:35)Ranjeet Wrote: I'm controlling casambi curtain from logic machine through bacnet so I need Script where I can put BDT scanned Object ID.Then only I can control casambi Curtain Open/Close

yes this is also i am facing the same problem


RE: scripting - Daniel - 13.10.2023

Is it server or client?


RE: scripting - abby - 13.10.2023

(13.10.2023, 13:46)Daniel Wrote: Is it server or client?

its a device


RE: scripting - Daniel - 13.10.2023

https://openrb.com/logicmachine-as-bacnet-client/


RE: scripting - abby - 13.10.2023

(13.10.2023, 13:58)Daniel Wrote: https://openrb.com/logicmachine-as-bacnet-client/

can you give me proper example


RE: scripting - admin - 13.10.2023

See this thread: https://forum.logicmachine.net/showthread.php?tid=4971


RE: scripting - abby - 16.10.2023

(13.10.2023, 15:26)admin Wrote: See this thread: https://forum.logicmachine.net/showthread.php?tid=4971

i am working with event based script like this but shutter code is not working


RE: scripting - Daniel - 16.10.2023

1. Did you install bacnet client package?
2. Did you discover your device under bacnet tab?
3. If yes what is the bacnet ID, object ID and object type?


RE: scripting - abby - 16.10.2023

(16.10.2023, 11:06)Daniel Wrote: 1. Did you install bacnet client package?
2. Did you discover your device under bacnet tab?
3. If yes what is the bacnet ID, object ID and object type?

yes 
its 215
i am running the script but its not working


RE: scripting - Daniel - 16.10.2023

Show me the screenshot from LM bacnet tab.


RE: scripting - abby - 16.10.2023

(16.10.2023, 12:24)Daniel Wrote: Show me the screenshot from LM bacnet tab.