2

How do I use api.exchange.get_actuator value for a Setpoint Manager?

I read the documentation but I dont really understand what the parameters are and I can't find examples that explain it.

rd1's avatar
43
rd1
asked 2021-10-08 04:25:13 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2021-10-08 16:54:01 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

Have you looked at the EnergyPlus example files? Some are using the Python Plugin.

PythonPluginReplaceTraditionalManagers_LargeOffice.py is pretty much doing exactly what you need. The key is that you do not actuate the SetpointManager, you actually use the "System Node Setpoint" "Setpoint Temperature" actuator on the node itself. An alternative if you have a SetpointManager:Scheduled for eg is to actuate the Schedule Value instead.

The key part is:

  1. Get the actuator handle:

    handle = self.api.exchange.get_actuator_handle(
        state,
        "System Node Setpoint",
        "Temperature Setpoint",
        "VAV_5 Supply Equipment Outlet Node"
    )
    
  2. Set the actuator value to 50C, do that in the on_after_predictor_after_hvac_managers callback for example

    self.api.exchange.set_actuator_value(state, handle, 50)
    

Study the example files, it should become clear.

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2021-10-11 03:39:08 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments