2

How set update time for EMS actuator override

I have a fairly simple question. Via EMS, I wrote a program to determine the thermostat setpoint based on the occupancy rate. Now, the thermostat setpoint updates every timestep (6 times per hour in my case). I want it only to update once an hour. How can I make it do this?

Thank you

Martinsquare's avatar
51
Martinsquare
asked 2021-03-01 07:47:53 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2021-03-01 08:24:24 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Store your computed value or set another EMS:Sensor on thermostat value.

On each iteration, check one of the built-in variables such as IF TimeStepNum == 1 or IF Minute == 60, if so, calculate and set your new value, otherwise use the stored value.

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2021-03-02 05:19:31 -0500
edit flag offensive 0 remove flag delete link

Comments

Thank you very much! It is working

Martinsquare's avatar Martinsquare (2021-03-02 09:32:29 -0500) edit
add a comment see more comments