Home Assistant + MagicMirror²

I have clean and unused Raspberry Pi 4 + old screen from notebook and HDMI adapter for this screen.

I would like to create a magic mirror to show info from my Xiaomi smart ecosystem (temperatues, lights, etc.)
In what order should I install MagicMirror² (magicmirror.builders) and Home Assistant (home-assistant.io)?
I have also PIR sensor - how can I turn on/off screen of magic mirror with this sensor?

Thank you in advance.

Welcome to the forum.

Please Search the forum. There are a number of magic mirror projects.