It is very easy to make your own surveillance camera yourself using a mini-PC SBC. The Raspberry Pi, Pi Zero W, Orange Pi, etc. all feature a connector that allows to add a camera board. You can also use any USB webcam. There are many Open Source projects such as Motion, Kerberos.io, Node-RED (MQTT camera) that just install to transform the mini-PC into a surveillance camera with motion detection! In this category you will find many examples of realization to integrate your DIY surveillance camera to your home automation server.