Quantum thermodynamics with local control