The pictured solution is very easy and comes with directions (ratgdo).
However, if even that is too much you can make a Switchbot do almost anything. It's just an actuator that pokes buttons and is a premade product with a shell rather than a DIY thingy.