fixed update of temperature when person state changed but switch state was newer