I am new to HA and I am here to seek suggestions/recommendations on what I'd like to achieve.
I currently have a Raspberry Pi 4B connected to an external hardware board with various I/O's. RPi4 runs on Ubuntu Server 22.04 LTS with specific device overlays for drivers to handle the I/O hardware board. Hardware related codes are written in C and user applications, in Python.
Now I would like to add HA to this project with some thoughts below:
1). Install HA onto the existing Ubuntu platform (via pip3 install homeassistant as suggested by CoPilot, have not tried yet) and use MQTT or http requests (which it already has) to send data to HA somehow. This approach is easier because all hardware related is already taken care. It is said that this installs the HA Core, which does not support Add-Ons. I assume this would make it harder to work with for a newbie.
2). Start fresh with HA OS on RPi4 and port over the existing Ubuntu-based software. I am not sure how HA OS handles hardware related software like drivers, device overlays, sudo, etc.. HA OS seems to be locked down.
3). Use Virtualization software somehow (Proxmox, VirtualBox, or KVM as suggested by CoPilot).
I'd appreciate very much for any suggestion/recommendation that you have on the best way to go about it. Thanks.