First time here? Check out the Help page!
![]() | 1 | initial version |
I would suggest you look at PythonPluginCustomSchedule.py / PythonPluginCustomSchedule.idf as a starting point.
From a cursory look, I think you're just using the wrong method: it should be api.exchange.get_actuator_handle
not self.api.exchange.get_variable_handle
You're doing
self.handles["COOLINGCOILAVAILSCHED"] = self.api.exchange.get_variable_handle(
state,
"Schedule Value",
"COOLINGCOILAVAILSCHED"
)
And you should be doing
self.handles["COOLINGCOILAVAILSCHED"] = self.api.exchange.get_actuator_handle(
state,
"Schedule Value",
"COOLINGCOILAVAILSCHED"
)
![]() | 2 | No.2 Revision |
I would suggest you look at PythonPluginCustomSchedule.py / PythonPluginCustomSchedule.idf as a starting point.
From a cursory look, I think you're just using the wrong method: it should be api.exchange.get_actuator_handle
not self.api.exchange.get_variable_handle
You're doing
self.handles["COOLINGCOILAVAILSCHED"] = self.api.exchange.get_variable_handle(
state,
"Schedule Value",
"COOLINGCOILAVAILSCHED"
)
And you should be doing
self.handles["COOLINGCOILAVAILSCHED"] = self.api.exchange.get_actuator_handle(
state,
"Schedule:Compact",
"Schedule Value",
"COOLINGCOILAVAILSCHED"
)
![]() | 3 | No.3 Revision |
I would suggest you look at PythonPluginCustomSchedule.py / PythonPluginCustomSchedule.idf as a starting point.
From a cursory look, I think you're just using the wrong method: it should be api.exchange.get_actuator_handle
not self.api.exchange.get_variable_handle
For reference, your schedule in the IDF is a Schedule:Compact.
Schedule:Compact,
COOLINGCOILAVAILSCHED, !- Name
[...];
You're doing
self.handles["COOLINGCOILAVAILSCHED"] = self.api.exchange.get_variable_handle(
state,
"Schedule Value",
"COOLINGCOILAVAILSCHED"
)
And you and getting this error
** Severe ** Handle not found for 'COOLINGCOILAVAILSCHED'
** Fatal ** Python Plugin "PythonPluginUserDefinedWindACAuto.Zone1WinACModel" returned 1 to indicate EnergyPlus should abort
You should be doing
self.handles["COOLINGCOILAVAILSCHED"] = self.api.exchange.get_actuator_handle(
state,
"Schedule:Compact",
"Schedule Value",
"COOLINGCOILAVAILSCHED"
)
And then your file will run to completion.
![]() | 4 | No.4 Revision |
I would suggest you look at PythonPluginCustomSchedule.py / PythonPluginCustomSchedule.idf as a starting point.
From a cursory look, I think you're just using the wrong method: it should be api.exchange.get_actuator_handle
not self.api.exchange.get_variable_handle
.
For reference, your schedule in the IDF is a Schedule:Compact.
Schedule:Compact,
COOLINGCOILAVAILSCHED, !- Name
[...];
You're doing
self.handles["COOLINGCOILAVAILSCHED"] = self.api.exchange.get_variable_handle(
state,
"Schedule Value",
"COOLINGCOILAVAILSCHED"
)
and getting this error
** Severe ** Handle not found for 'COOLINGCOILAVAILSCHED'
** Fatal ** Python Plugin "PythonPluginUserDefinedWindACAuto.Zone1WinACModel" returned 1 to indicate EnergyPlus should abort
You should be doing
self.handles["COOLINGCOILAVAILSCHED"] = self.api.exchange.get_actuator_handle(
state,
"Schedule:Compact",
"Schedule Value",
"COOLINGCOILAVAILSCHED"
)
And then your file will run to completion.