Apologies @KarenAG! Was getting a little off track. Here is my installation - you don't need to go with Ubuntu 64 or do the m.2 thing - just the standard Raspberry Pi OS Lite - recommend not installing the GUI as it adds overhead but you can if needed.
For the installation I used an RPi4 with 4 GB Memory. I am using a case called the Argon ONE m.2 and booting off an m.2 sata drive with the sdcard as backup.
My distribution is Ubuntu Server for RPi - 64 Bit.
I installed node-red and homebridge using the installation instructions here:
Node-RED
https://nodered.org/docs/getting-started/raspberrypi
HomeBridge - Note: I skipped "Step 1" since this was done with NR install.
For additional fun I also installed a local VPN called Wireguard using this awesome script:
Note: If you are into running Docker apps others can chime in on how to do that.