SpaceLogic KNX Forum
Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.
Link copied. Please paste this link to share this article on your social media post.
Hello
Where is the "Import script(s)" function in the SL? From what I can tell, it's only possible to import a backup file (in a certain format) containing scripts. But that rules out the possibility of engineering LUA scripts outside of a spaceLYnk!
To clarify, we already have the script templates tested and ready, what group-addresses each individual script shall be connected to and a fairly quick way to generate all of these LUA script files (VBA application in Excel, search and replace).
We have to use 2 types of LUA script for the rooms we control, spread out across multiple SL's (148), totaling some 1500 scripts. Please don't tell me the only option is to manually engineer all of these scripts, by hand, in each and every one of our SL's!
Creating these scripts manually in each SL -
Tremendous amount of engineering time wasted due to the lack of a very basic function.
Creating these scripts in a somewhat automatic fashion outside a SL and then importing to SL -
Saving a tremendous amount of engineering time!
CC: Thomas Rohde
PS. Tested on SL with FW 1.2.1.
PPS. Yes I am aware of page 83/chapter 4.12.8 "General scripting description" in the SL manual, listing the available actions for each script, including "Duplicate".
Link copied. Please paste this link to share this article on your social media post.
Hello Jakob,
Can you send me example of script template? Maybe you can use dynamic group object selection, but I need to see you scripts first.
Thank you.
David
Link copied. Please paste this link to share this article on your social media post.
Hello David
Example:
"
--Læser signal fra betjeningspanel og videresender det til pir
Manuel_On_Off_Tryk = event.getvalue() --Henter værdi fra den gruppeadresse, der aktiverede script
if Manuel_On_Off_Tryk == true then --Kontrollerer om der er trykket Manuel On
grp.write('1/0/16', 75) --Sender værdi til pir, hvilket samtidig får den til at gå i manuel
elseif Manuel_On_Off_Tryk == false then --Kontrollerer om der er trykket Manuel Off
grp.write('1/0/16', 0) --Sender værdi til pir, hvilket samtidig får den til at gå i manuel
end
"
Not sure what dynamic group object selection is?
PS. We could really need a "insert code function" for this community.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.