What is the problem?
I just ordered a Raspberry Pi 4B, and was wondering if it would be possible to use the same Raspberry Pi for Octopi, as well as something else totally unrelated (Homebridge). Super unfamiliar with Raspberry devices and wasn't sure if the images would overwrite each other.
What did you already try to solve it?
I tried googling how Raspberry Pi images work and maybe I'm just a silly goofy guy but I cannot for the life of me find if Octopi would overwrite Homebrews image or if both servers can run simultaneously on the same device.
Should work fine, but you have to do some stuff on your own.
I would suggest to flash the OctoPi image and then run Homebridge in a docker container.
Just don't use the default 80/443 ports for it because they're already in use by OctoPrint.
Just use a guide for rapsbian / raspberry pi os or debian.