Yes, he knows that on a deeper level. He should not be going out on a night like this one. He should be safe in the house. But he has moved more out of neutral than he had intended. He cares very much for Hermione and her cause. He has become perhaps a traitor, to the light occasionally. He uses the light that has been born in him, to heal those that are darker and not as capable of healing spells.