How to Expand Objects of HVACTemplate using E+ Python API?
I was trying to create variable and actuator handles for some shading and ventilation control. Firstly, as the documentation suggested, I ran a simulation via E+, took the generated .expidf file and renamed it as .idf file to run it again as an expanded version of the previous IDF. As a result, now the API goes into the callback function, creates the handle and all but doesn't do the functions as I set inside the Callback function. It looks like E+ starts the simulation and comes right out of it, without executing the whole code. Even when it works, for some weird reason, the shading control actuator only takes '76' value, where in script it can only be 0.6 or 0.2.
Is there any way to: 1. run the expanded IDF via E+ Python API? or any other way to run any IDF file that needs to be expanded to work? 2. check if my actuator values are being properly changed and corresponding variables are affected (other than print statements)?
I wish I could enclose the code I'm working with, but that's really not possible right now. So any high level guideline will be appreciated.
If the callback function isn't too complicated, you could try to re-write it in Erl within the IDF as an EnergyManagementSystem:Program, which may be easier to debug.