scene store script like in the old PICED C-Bus programming software
SpaceLogic C-Bus Forum
Schneider Electric forum about the C-Bus platform to get support and share knowledge including Network Automation Controller (NAC), Application Controller (AC) at selection, installation and troubleshooting sides.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
configure the "visual object - triggering button" with standard on/off properties, the lua script will reset the trigger object's status and also act as an visual indication that the “lua code” operated... ...for example... when the the lua code runs it will set the "triggering object/button" to "off" state.
--------------------------------------------
1/ create a visualisation page for the specific scene you wish to store.
2/ add slider or dimmer object for each GA you wish to store in the scene. This will allow the enduser to do easier scene editing.
3/ add an extra visual object on the page that can be used as "scene store" button.
4/ create a event based lua script using the code below, some of the code will convert itself to comments when pasted into the NAC/SHAC script window.
"--" characters turn text into comments FYI.
code is using local nertwork "0", application "56", Group address "1", to 'run the lua code'. ---------------------------------------------
--event based lua script for scenestore function if GetCBusState(0, 56, 1) == true --create a "scene store" page and use a on/off button with this example GA=1 and label the button as "store Scene 1" then StoreScene("Scene 1") -- Enter the name of the scene you wish to store in " "....ie Scene 1 SetCBusState(0, 56, 1, false) -- Reset the button / GA used to triggger the Scene store function...ie GA=1 end