How do i get a sensor value using the EnergyPlus Python api? [closed]

asked 2021-10-07 04:08:50 -0500

rd1's avatar

What I'm trying right now is to get the "Zone Air Temperature" for "Thermal Zone 1" and the "System Node Temperature" of my "Setpoint Node".

zone_air_temperature = api.exchange.get_variable_handle(state, u"ZONE AIR TEMPERATURE", u"Thermal Zone 1")

setpoint_node_temperature = api.exchange.get_variable_handle(state, u"SYSTEM NODE TEMPERATURE", u"SETPOINT NODE")

If i call api.exchange.get_variable_value on them it always returns 0. Am I doing this wrong?

Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Julien Marrec
close date 2021-10-08 02:32:28.420682

Comments

@rd1 this seems to be very similar to your other post. Can I close the other one?

Aaron Boranian's avatar Aaron Boranian  ( 2021-10-07 11:07:09 -0500 )edit