Python API: Actuators all zero

asked 2024-05-13 14:34:31 -0500

sz1980's avatar

updated 2024-05-14 12:43:32 -0500

Hi,

I am using the Python API for Energyplus.

When getting the value for the handle of the actuator (in my case ["Zone Temperature Control", "Heating Setpoint", "Soace1.1"]) I receive only zeros.

I use the following code:

eplus_api.exchange.get_actuator_value( eplus_state, actuator_handles[key], )

I also tried different calling points but the values stay at zero. If I set them via my actuator - only then I get a value different from zero.

Can anyone tell me, why this is the case?

Related to this: If actuator values cannot be received like this, but instead via the variables (get_variable_value) - I just saw that the values of e.g. the setpoints are named differently. Is there any way to use the same name ["Zone Temperature Control", "Heating Setpoint", "Space1-1"] instead of ["Zone Thermostat Heating Setpoint Temperature", "Space1-1"]?

edit retag flag offensive close merge delete

Comments

Hi! Reading the line of code that you share, I've observed a comma and space at the end of the arguments in the method. That is an error of typing here?

hermmanhender's avatar hermmanhender  ( 2024-05-14 01:46:03 -0500 )edit

@hermmanhender thanks for coming back to me and for carefully looking through my question. The trailing comma is actually a relict of a multiline command, where commas make it look cleaner. It does not influence execution in Python.

sz1980's avatar sz1980  ( 2024-05-14 03:09:21 -0500 )edit