A working machine includes an auxiliary system carried by the working machine, one or more batteries and an onboard thermal transfer system. The one or more batteries power an electrical system of the working machine. The onboard thermal transfer system utilizes a coolant configured to remove at least a portion of heat generated by the one or more batteries during charging or discharging of the one or more batteries and using the coolant heated by the thermal transfer system to heat the auxiliary system.