How to determine source ID of an event?

Discussion in 'C-Bus Automation Controllers' started by Jeffster, Oct 6, 2018.

  1. Jeffster

    Jeffster

    Joined:
    Jan 1, 2018
    Messages:
    1
    Likes Received:
    0
    hi,

    I am trying to create some logic in my PAC that only runs if an event is triggered by a certain device. Specifically I have a light that has in controlled by both a switch and a PIR, and I want some code to run only if the light is turned off from the switch (rather than the PIR). Does anyone know if it's possible to determine the source unit ID from within the Pascal code?

    thanks
    Jeffster
     
    Jeffster, Oct 6, 2018
    #1
  2. Jeffster

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
    No, this is not possible from logic. The protocol tells you the unit that issues the command, but this information is not made accessible. I generally just create separate ga's for the switch and the sensor and use logic in the output unit to allow either to operate the load.
     
    Ashley, Oct 6, 2018
    #2
    jboer likes this.
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.