If your focus issue is indeed due to the temperature, I think it could be solved by the feature I recently developed : trigger autofocus on temperature change. It uses the focuser probe, if available, to compare the last focus temperature to the current temperature, and triggers the autofocus in case it reaches the specified limit.

The feature should be delivered in the next release, but you can test it with the nightly.

Clear skies!