How can I write my own scripts for home automation?

Hi Jonathan,

Welcome here! I advice you to make sure you get a good understanding on how flows work and what you can achieve with them. Start little, first switch something on and off and next add some conditions. You’ll find the way flows work is very easy.
After that, install the Ring Doorbell, Camera and Alarm support for Homey app and play around with it, I think you’ll find out everything you want is achievable. Then, take the next steps, install the next functional app and see what it does and can do. Don’t try to do everything in one go.

Have fun!