If you honestly gave that some thought, it's not an easy problem to solve. Otherwise, I'm sure that the Amazon Home Locker would be a thing.
The main problem is multiple deliveries - how do you make a box that can lock and unlock (automatically or otherwise) for -only- delivery companies and drivers, for multiple deliveries and packages per day - but not allow others to do so?
Remember, the drivers and delivery people have very limited time to deliver packages; they won't read instructions, or even pay nominal attention to them. You won't be able to give them (or the company) some kind of RFID key fob or other item to use to open the locker (because you are only a single address, not a large company with "pull power" and a contracted service agreement - and even then, maybe not). There's also the possibility of freelance or other kinds of "couriers" that likely drive their own vehicles and have no other delivery identification (I've had packages delivered to my door by cab drivers in a marked cab - supposedly shipped by UPS).
I recall one kickstarter where the idea was a "pad" that packages could be put on, but if the pad or a package was removed, an alarm would go off (it also had some kind of camera and email notification capability). IIRC, it got funded, but I have no idea how well the idea worked. Likely, it probably didn't work well at all - simply because delivery people probably didn't use it, or didn't understand to stack packages on top of other deliveries, etc.
I'd personally love a solution for this problem, and so would tons of other people affected by "porch pirates" stealing their packages. My solution is the old fashioned way: Have them delivered to my employer. But this solution isn't available to everyone, unfortunately.