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
    8

    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
    Apex User zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    7,053
    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
    8
    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
    Apex User zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    7,053
    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
    8
    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
    15,867
    I’d stick with your original concept using If Time, and use the specific times desired.
    I'm not a Neptune support rep. 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
    8
    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).

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
  •