Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

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.