Exactly! It isn’t a complicated device really. The “gotcha” in this is the amperage. If it were slightly less, a Sonoff alone would do it. But the amperage requires a much more robust device for the power switching and that kinda goes outside of the average DIY or techy automation project. Not a lot though. It just needs a little more ooomph to get it done. An SSR like @techman83 is showing is the answer, but it requires a heat sink of some sort. A ‘contactor’ doesn’t. Either way, the job is easily accomplished but takes a little amount of jiggering to accomplish. BTW… you can get away with doing only one SSR. I just prefer to cut power to both legs of a 240 circuit. Not totally necessary though. The contactor option does that by default as it is a 3 pole relay in which both legs go through it by design. So that only requires 1 anyway.
The “controller” can be an ESP of some flavor with some code or it could be a Sonoff SV allowing you to use only one power supply at 12 volts. But again, it is a simple and not expensive endeavor. Just ‘some assembly required’! And none of it has to be attached directly to the coffee machine and doesn’t need you to modify an outlet. Just build your module, cut the cord, wire it inline and plug the cord back in. Or, do like shown above and wire it all with it’s own outlet to plug the coffee maker into and it is effectively a power strip with one outlet.
I started building the video on modifying a Sonoff Basic to turn it into a kind-of-Sonoff SV. It was a challenge I had to rise to