This is quite distinct from writing software code and using micro-computers such as Arduino and Raspberry Pi. This domain is more reserved for more technically minded users.
So, the goal here is to use the out-of-the-box application and features to help you with sequences, scenes, routines, automated responses and trigger-based events that make things happen for you.
Actions of individual devices can be chained together to form a sequence of events triggered by another event or command.
This area of home automation is a little more advanced but there are plenty of tutorials online to help guide you through this process and again, build up in stages rather than trying to take on too much too soon.
A professional can help with this.