I unplugged it but now it doesn't work anymore

I just got a Raspberry Pie and I’m trying to install Home Assistant on it whenever I turn on the power supply it shows it booting up but before it gets to the Home Assistant screen with the IP address it crashes and this screen says into HDMI not connected Finally after flooding an unplugging it over and over again and reinstalling the software on the SD card it worked but I had to unplug it and move and then when I plugged it back in and it’s new location wouldn’t work anymore

Nearly always these sorts of issues are caused by faulty SD Cards or power supplies.

Try a different card and make sure you are using an RPi power supply.

Also it is not a good long term solution to run on an SD Card, much better to use a USB SSD,

how do you use a usb

You need to update the bootloader