Lua Redirect() Function with AC2

Discussion in 'C-Bus Automation Controllers' started by noyzey, Mar 24, 2025.

  1. noyzey

    noyzey

    Joined:
    Mar 24, 2010
    Messages:
    43
    Likes Received:
    2
    Location:
    Sunshine Coast, Australia
    Hi Guys

    Any help would be appreciated.

    I have successfully been using the Redirect() function to map my C-Bus custom application 57 to the corresponding trigger group. Now I have two networks and this function doesn't seem to be working for the second network (253).

    Where can I find more information on this LUA Redirect function so I can work through this issue?

    Cheers
    gv
     
    noyzey, Mar 24, 2025
    #1
  2. noyzey

    Dasman

    Joined:
    May 5, 2011
    Messages:
    40
    Likes Received:
    5
    Location:
    Adelaide
    Hi Noyzey,

    The Redirect() function was not actually a standard function of the inbuilt LUA libraries, and instead was apart of the Application Redirector module out of the project services team many many years ago (I should know, I wrote it).

    This module was created to get around the limitation of not having the Track Group functions that were available in PICED. Fortunately, since then, a Track Group function has now been included.

    -- Make group 'MeetingRoom1' on application 'Lighting1' in network 'Local1' and group 'MeetingRoom2' on application 'Lighting2' in network 'Local2' track each other.
    TrackGroup2('Local1', 'Lighting1', 'MeetingRoom1', 'Local2', 'Lighting2', 'MeetingRoom2')
    Failing this, you could always create an event based script on the group you wish to forward and use the following code

    grp.write("0/202/1", event.getvalue())

    This will take the value of the group that triggered this script and forward it to the trigger group of your choice.
     
    Dasman, Mar 26, 2025
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.