I wrote a short ems to do this for freeze protection trace heating on piping... you can adjust it for pitch heating.
!!!External equipment
Exterior:FuelEquipment,
PipeFrostProtection,
Electricity,
FrostFreeSch,
5850, !26 W/m @ 225 m =
PipeFrostProtection;
Schedule:Compact,
FrostFreeSch, !- Name
Any Number, !- Schedule Type Limits Name
Through: 12/31, !- Field 1
For: AllDays, !- Field 2
Until: 24:00,0; !- Field 3
!!!!!FROST FREE EMS!!!!!!!!!!!!!!!!!!!!!
!ODA dry-bulb temperature sensor
EnergyManagementSystem:Sensor,
ODA_T, ! Sensor Name...reporting schedule properties
Environment, ! Output:Variable or Output:Meter Index Key Name Zone/Sys Thermostat Cooling Setpoint Output:Variable,*,Zone/Sys Thermostat Cooling Setpoint,hourly; !- Zone Average [C]
Site Outdoor Air Drybulb Temperature; ! Output:Variable or Output:Meter Name
EnergyManagementSystem:Actuator,
FrostFreeOn, !- Name
FrostFreeSch, !- Actuated Component Unique Name...in this case !-EnergyManagementSystem:Actuator Available,COOLING SP SCH,Schedule:Compact,Schedule Value,[ ]
Schedule:Compact, !- Actuated Component Type
Schedule Value ; !- Actuated Component Control Type
!***Program Calling Proceedure***
EnergyManagementSystem:ProgramCallingManager,
FrostFreeCM, ! Name
AfterPredictorAfterHVACManagers, ! EnergyPlus Model Calling Point
FrostFree; ! Program 1 Name
!
!***Main Program***
!******************
EnergyManagementSystem:Program,
FrostFree, ! Program 1 Name
!
IF (ODA_T < 4),
SET FrostFreeOn = 1,
ELSE,
SET FrostFreeOn = Null,
ENDIF;