This gives a count of 4 cups made. But it is actually 2,
The first peak is heating up (Not making coffee) the second peak is making coffee.
The 3th peak is start making coffee, wait a few seconds (part of the brewing mode), and go on making coffee. Also counting 2 coffee’s instead of 1.
My trigger:
My guess would be trigger on a consumption (power, not cafeïne ) above a certain threshold combined with a condition to avoid triggering again within a certain timeframe.
This might fail though if you make 2 coffees after each other.