Flash Home Assistant OS to a Pi 4 or 5 with Raspberry Pi Imager (Other specific-purpose OS -> Home assistants and home automation). Open http://homeassistant.local:8123, and it will discover many of your smart devices automatically.