A method of operating a heating, ventilation, and/or air conditioning (HVAC) system includes operating a device to produce at least one of electricity and rejected heat and at least one of (1) powering a component of the HVAC system using the electricity produced by the electricity generating device and (2) heating the refrigerant of the HVAC system using at least a portion of the rejected heat.