Gravar-mail: Active Inference, homeostatic regulation and adaptive behavioural control