I wrote a beginner-friendly Home Assistant automation guide

Check out the cookbook