DaveB Wrote:Dean,
Just questioning why the Event Server, Scheduled Events is not exposed to the user interface for either monitoring or creation of events on the fly?
This would be a great method of creating and managing events like temperature setback and so on. Currently I manage these type of events through HAI and monitor these functions via CQC. I want to move that functionality directly to the IV rather than being hard coded in HAI.
That functionality is there - see the last section of the Action Reference tech doc:
Target: EventSrv
The EventSrv:: target provides commands that allow you to interact with the CQC Event Server.
StdCmd:GetSchEvInfo (id,timevar,maskvar,statevar)
This command allows you to get information about a scheduled event (one of the daily, weekly, or monthly types.) You provide the id of
the event and it fills in three variables that you provide. They receive the start time of the event, the day/month mask, and the
paused/un-paused status
The mask has no meaning for daily events. For weekly events it is a list of seven ones or zeros, indicating which days of the week are
scheduled. For monthly events it is a list of twelve ones or zeros indicating which months of the year are scheduled. A one means that
day or month is scheduled and zero means it is not.
The time value is in the form ├ó┬Ç┬£dd hh mm├ó┬Ç┬Ø, i.e. the day, hour, and minute that the event runs each day, week, or month. The day value
isn‟t meaningful for a daily type event.
StdCmd:GetSunEvInfo (id,offsetvar,statevar)
This command allows you to get information about a sun-based event. You provide the event id, and it sets two provided variables to
the offset from the sunrise or sunset time and the paused/unpaused state of the event.
StdCmd

auseSchEv (id,state)
This command allows you to pause/unpause scheduled events. The id is the unique identifier of the scheduled event to affect. This is
not a human meaningful value, but when you select them from the list during creation of the action you will be able to see the text
names. The text name though is not required to stay the same, so the unique id is what is actually put into the parameter. The state is
the usual Boolean True/False value, with true meaning pause it and false meaning unpause (resume) it.
StdCmd:SetSchEvTime (id,time,mask)
This command allows you to get information about a scheduled event (one of the daily, weekly, or monthly types.) You provide the id of
the scheduled event, and the runtime and mask. These are the same as described in GetSchEvInfo above. The mask cannot be all
zeros.
StdCmd:SetSunEvInfo (id,offset)
This command allows you to set the offset for a sun-based event. The offset value is the number of minutes (-60 to 60) to offset the
event from the actual sunrise or sunset