I have currently a raspberry pi zero 2W integrated in our mailbox. It runs motioneye providing video stream of the front door, I would like to integrate two sensors to detect when there is something in the box and when the door is opened to clear it.
I found different approaches, but they are several years old, I was wondering which way to go. One is a custom python script, next is remotly contact the gpio signals by rest api and last one the remote_rpi_gpio.
What is state of the art, ideally not programming myself, but using something that only needs to be configured.
Alternatively, I thought about adding an esp8266 running esphome, this would be clear and independed of the pi, but additional hardware which might be saved