Results 1 to 7 of 7

Thread: how to (programatically) check if Kessil Light is On/Off?

  1. #1
    New User
    Join Date
    Sep 2017
    Location
    San Francisco
    Posts
    12

    how to (programatically) check if Kessil Light is On/Off?

    I want my CO2 to be ON/OFF when my Kessil lights (running on my VDM module) are ON/OFF.

    At the moment, my CO2 outlet is doing:
    Fallback OFF
    Set OFF
    If Time 08:00 to 19:00 Then ON


    What I'd prefer is something like this:
    If 2_2 ON Then ON
    or this:
    If 2_2 > 0% Then ON

    I've read the Apex manual, the VDM manual, the forum's Kessil sticky note, and all the posts I can find, but I can't find any mention of how to do an "If" condition, using the variable speed outlet.

    Can anyone help?

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    You use this syntax

    If Outlet Outletname = ON Then ON


    For variable speed outlets anything not 0 is considered ON and 0 is considered OFF

    You might be an engineer if...You have no life and can prove it mathematically.

  3. #3
    New User
    Join Date
    Sep 2017
    Location
    San Francisco
    Posts
    12
    Aww, so if I've named VarSpd2_2_2 (device 2_2) to LightBright1, the script would be

    Fallback OFF
    Set OFF
    If Output LightBright1 = ON Then ON


    That'll work, though not perfectly, as Kessil LEDs are powered off around 12%, but Apex still considers them ON until the outlet reaches 0%.

    But that's close enough for what I need to do.

    Thanks for the fast response!
    D

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Just add another point 1 min before and after the kessil are around 12% and make it go to 0 in 1 minute. That will minimize flickering and keep the CO2 closer to actual turn off time.

    You might be an engineer if...You have no life and can prove it mathematically.

  5. #5
    New User
    Join Date
    Sep 2017
    Location
    San Francisco
    Posts
    12
    I modified my daytime light curve, by adding a 0% point at 7:45 AM, and a 12% point at 8 AM. That'll allow the CO2 to turn on at 7:45 am (15 minutes prior to the Kessil LEDs actually coming on).

    But for the evening, I want the CO2 to turn off 15 minutes *before* the Kessil LEDs actually turn off.

    Not sure how to do that. Any ideas?

  6. #6
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    I’d stick with your original concept using If Time, and use the specific times desired.
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  7. #7
    New User
    Join Date
    Sep 2017
    Location
    San Francisco
    Posts
    12
    Yeah, I ended up going back to using If Time, because the condition
    If Output LightBright1 = ON Then ON
    always returned ON, even when the Kessil light was off (i.e., even when the brightness was set to 0 in the tdata).

Similar Threads

  1. Review My Program Please check code for DIY light fixture
    By oblivionis in forum Apex Programming for Lighting
    Replies: 7
    Last Post: 03-11-2019, 12:31
  2. Light Program check
    By drex in forum Apex Programming for Lighting
    Replies: 4
    Last Post: 04-01-2017, 16:32
  3. kessil light schedule
    By bri_in in forum Apex Programming for Lighting
    Replies: 2
    Last Post: 03-31-2015, 18:38
  4. Initate Feed A...D programatically??
    By byron in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 02-06-2014, 15:42
  5. Kessil light programming
    By [email protected] in forum Misc Apex Usage & Programming
    Replies: 5
    Last Post: 12-04-2013, 19:28

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •