Hello, Im trying to couple energyPlus with python using pyenergyPlus im applying actions on the slat angle of my interior blind and im retreiving its corresponding illuminance Current Code Logic:
I retrieve the current blind angle using: sa = cs = self.api.exchange.get_variable_value(state, self.blind_status_value) or 0
I alternate between two angles (180° and 60°) using: slat_angle = 180 if self.slats_state else 60
I set the new angle with: self.api.exchange.set_actuator_value(state, self.a_slats, slat_angle)
The Issue: When I run the code, the illuminance values I'm getting correspond to the previous angle setting rather than the current one:
When I set the slat angle to 60°, I get the illuminance value that should correspond to 180°
When I set the slat angle to 180°, I get the illuminance value that should correspond to 60°
i triend all the callbacks for now im using this one to send actions : callback_begin_zone_timestep_before_init_heat_balance and this to retreive the illuminance values :callback_end_zone_timestep_after_zone_reporting and my timestep is 1
My Hypothesis: I suspect this might be a timing issue where the system needs time to process the angle change before the illuminance measurement reflects the new setting