It is not exacly what you pointed, but there is a problem with temperature that I have encoutered today, it happen when a low temperature filament is printed after a high temperature filament and that the purge is too fast to let the new low temperature filament cool down to its required temperature.
It happened for my case when printing PLA(220°) using PETG (255°) support, I am being updating the filament change g-code and will post the update here after I have finished testing it.
Basically a M109 R[new_filament_temp]
at the end of the g-code, just before wiping, should do the job, as M109 can wait both heating or cooling of nozzle.