The ongoing heatwave gripping parts of NSW and Queensland has put millions on the brink of a blackout, while other areas battle rain and thunderstorms.