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

Python plugin and library workflow

asked 2021-07-16 11:59:34 -0600

wei_zhang's avatar

updated 2021-07-16 16:14:58 -0600

Hi everyone

I have a workflow question about the Python EMS. I noticed that after working on Python plugin file, we still need to declare variables in EP+ .idf file, such as PythonPlugin:**** . If the workflow starts from OpenStuido, each time a new EP+.idf would be generated by OpenStudio. That means we need to manually change the .idf to build the interface with Python Plugins? One possible alternative way is to use EP+ measure in OpenStudio to automate this step. Does this suggest each Python Plugin need a measure file? I also notice the epJSON Input Schema available in API 0.2. Could we use this to create something similar as EP+ measure?

For Python as library in EP+, I have a similar question. If we want to work with control algorithm and need to manipulate the sensors/actuators, we still have to add these sensors/actuators as we did with Erl? or write measures?

I just feel this workflow might be optimized somewhere.

Thanks

Wei

edit retag flag offensive close merge delete

Comments

1

I use E+ as a library with the Python EMS API, I am still new to it. When using OpenStudio, there are EMS sensors/actuators checklists I can check to automatically add the EnergyManagementSystem:Sensor/Actuator to the Idf, also same with Output:Meter, Output:Variable, etc. But, when not using OpenStudio, I will use the .rdd and .edd output files to see my available outputs to add to the .idf manually.

mechyai's avatar mechyai  ( 2021-07-18 16:18:06 -0600 )edit

Thanks @mechyai, could you please tell more about the EMS sensors/actuators checklists, is it located in OpenStudio Application?

wei_zhang's avatar wei_zhang  ( 2021-07-18 16:32:32 -0600 )edit
1

In the far right panel, there is an Edit Tab - within the edit tab, among other buttons, there are two buttons that look like knobs/dials that are the EMS Sensor and Actuators. Obviously, they are not available on all pages and objects, they are most abundant with the HVAC system objects. Let me know if you need me to reexplain

mechyai's avatar mechyai  ( 2021-07-19 08:45:25 -0600 )edit

Thanks I found them. They are normal for mechanical system components. What if I want to put a sensor in a space or thermal zone without HVAC?

wei_zhang's avatar wei_zhang  ( 2021-07-19 09:25:13 -0600 )edit
1

Go to the 'Properties' (General) tab on the 'Spaces' tab, then under the 'Thermal Zones' column you will be able to click on your thermal zones and those associated Sensors and Actuators will be available in the same spot as before.

mechyai's avatar mechyai  ( 2021-07-20 08:58:39 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-09-06 03:55:37 -0600

updated 2022-09-06 03:56:26 -0600

Note that this will be available in the upcoming release of OpenStudio SDK (the one after 3.4.0). Please refer to OpenStudio#4600 and see an example ruby script at OpenStudio-Resources's python_plugin.rb

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

4 followers

Stats

Asked: 2021-07-16 11:59:34 -0600

Seen: 356 times

Last updated: Sep 06 '22