I've fully automated my supply of fresh local coffee beans using a connected scale. I leave my beans on the scale and the data is sent to a ML system that learns from my consumption and reorders for me so new beans arrive at the right time.
(I'm a beta tester here: https://www.getbottomless.com )