ESP32 Cam
Cheap as sin Can use ESPHome
Home automation is the residential extension of building automation.
It is automation of the home, housework or household activity.
Home automation may include centralized control of lighting, HVAC (heating, ventilation and air conditioning), appliances, security locks of gates and doors and other systems, to provide improved convenience, comfort, energy efficiency and security.
Warning: Working with electricity can result in injury, property damage, or even death if it is not done properly. Please keep this in mind while assisting others. If you are not sure about what you are doing, hire a licensed professional.
ESP32 Cam
Cheap as sin Can use ESPHome
I got a cheap cam off amazon- search for onvif cameras. Cost $30. Added to home assistant easily, has night mode and a bright flash, easily programmed with home assistant scripts. I'm using it mostly to scare neighbors cats off my porch and to keep an eye on my smoker.
https://www.amazon.com/EVERSECU-Security-Outdoor-Detection-Conformant/dp/B0BTSYQW4L