You heal when you use a potion, or after an action that grants it. Never from resting.