Results 1 to 1 of 1

Thread: Changed If Sun & If Moon behavior - anyone using If Sun or If Moon - READ THIS!

  1. #1
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463

    Changed If Sun & If Moon behavior - anyone using If Sun or If Moon - READ THIS!

    As noted in the v4.31 release notes, Apex firmware v4.31 changes the behavior of the If Sun and If Moon statements.

    In firmware version v4.30 and earlier, the If Sun and If Moon statements have an implicit OFF state whenever the statement is not TRUE. This has changed - that implicit OFF state is no longer there. If Sun and If Moon now act like all of the other conditional statements (If probename, If Power, If Outlet, etc.)

    AFTER UPGRADING FROM A PRIOR FIRMWARE VERSION TO v4.31, EVERYONE USING THESE STATEMENTS MUST MODIFY THE OUTLET PROGRAMMING FOR EACH OUTLET WHICH CONTAINS AN IF SUN OR IF MOON STATEMENT.

    To duplicate the old functionality, add a Set OFF or Set ON statement just before the If Sun or If Moon statement. For example, if a real or virtual outlet is programmed to to be on when the the sun or moon is up:

    Fallback OFF
    If Sun 000/000 Then ON

    Change it to:
    Fallback OFF
    Set OFF
    If Sun 000/000 Then ON

    If your current program for a real or virtual outlet is programmed to to use a profile when the the sun or moon is up:

    Fallback OFF
    If Sun 000/000 Then profilename

    Change it to:
    Fallback OFF
    Set OFF
    If Sun 000/000 Then profilename


    If your current program for a real or virtual outlet is programmed so the state of the outlet is opposite of that of the sun or moon:

    Fallback OFF
    If Sun 000/000 Then OFF

    Change it to:
    Fallback OFF
    Set ON
    If Sun 000/000 Then OFF


    The need to do this is a minor one-time inconvenience, but in the long run, the new behavior offers significant advantages - namely, it is becomes much easier and simpler to program for advanced dimmable lighting schedules based on the times of sunrise/sunset and moonrise/moonset as listed in the Apex Season Table.
    Last edited by RussM; 12-26-2013 at 10:48.
    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.

Similar Threads

  1. Setting up lights to run when the sun is up, or the moon
    By Steve88 in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 10-10-2018, 21:42
  2. Replies: 10
    Last Post: 06-28-2015, 18:10
  3. Help! Moon Profile with Hydra's at %100 RB & %1 overall, profile not turning moon lights on.
    By Geokiris in forum Apex Programming for Lighting
    Replies: 29
    Last Post: 02-19-2014, 07:33
  4. Question: Sun, Moon, AI SOl
    By mgaumond in forum Apex Programming for Lighting
    Replies: 3
    Last Post: 11-06-2013, 12:26
  5. Question: Season Table to control sun/moon lighting intensity?
    By cloud ix in forum Apex Programming for Lighting
    Replies: 3
    Last Post: 01-15-2013, 17:43

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
  •