[Equest-users] script language to change lighting schedule

Byron Burns B.Burns at ha-inc.com
Thu Mar 26 14:16:59 PDT 2015


Try this, you will need to change the name of the schedules and c-activity-desc.

   LIGHTING-SCHEDUL = (
{if(#L("ZONE-TYPE")== #SI("CONDITIONED","SPACE","ZONE-TYPE")) then
               switch(#L("C-ACTIVITY-DESC"))
               case "off1": #SI("off1 - office open InsLt Sch","SPACE","LIGHTING-SCHEDUL")
               case "off3": #SI("off3 - 24 hour InsLt Sch","SPACE"," LIGHTING-SCHEDUL ")
               case "caf1": #SI("Cafeteria Light","SPACE"," LIGHTING-SCHEDUL ")
    case "dat1": #SI("Mech/Elec/Com Light","SPACE"," LIGHTING-SCHEDUL ")
               case "mec1": #SI("Mech/Elec/Com Light","SPACE"," LIGHTING-SCHEDUL ")
               case "war1": #SI("off1 - office open InsLt Sch","SPACE"," LIGHTING-SCHEDUL ")
               case "bay1": #SI("off1 - office open InsLt Sch","SPACE"," LIGHTING-SCHEDUL ")
               case "dumm": unused
               default: #SI("off1 - office open InsLt Sch","SPACE"," LIGHTING-SCHEDUL ")
                              endswitch
               else
                              unused
               endif
               } )


Byron D. Burns, EIT, BEMP
Energy Engineer, Building Sciences Studio

H&A | Hankins & Anderson | www.ha-inc.com<http://www.ha-inc.com>
d: (804) 420-1622 p: (804) 285-4171 f: (804) 217-8520

From: Equest-users [mailto:equest-users-bounces at lists.onebuilding.org] On Behalf Of Wang, Liao
Sent: Thursday, March 26, 2015 5:10 PM
To: equest-users at lists.onebuilding.org
Subject: [Equest-users] script language to change lighting schedule

Hi,

I'd like to know how to define lighting schedule using "user-defined default expression"? For instance, I'd like to change lighting schedule for all apartments to "LT_APT", what's the exact script I should use? I've tried something like:
Switch(#L("C-ACTIVITY-DESC"))
Case "APT": "LIGHTING-SCHEDUL"="LT_APT"
Endswitch

But I'm sure there are some errors in my script, especially the underlined portion...Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20150326/1da265cb/attachment.htm>


More information about the Equest-users mailing list