Automation for Wash Machine

Hello! I have a smart socket connected to my wash machine so I can monitor the amount of energy used.

I was wondering if it’s possible to trig an automation when the wash machine stop consuming energy.

The socket just provide energy (the number always goes up) so I would need something that is triggered just when the energy stop going up for some minutes. Is something like that possible?

I’ve not used it before but I think a Trend would give you the trigger you need: Trend - Home Assistant

I’d think the derivative is also suitable. But I think both wait for a new value instead of a time triggered approach. So you may need to combine with a time trigger sensor:

Stupid me! In the diagnostic there’s power and I can use it to trig the automation.

Thank you guys!!

That would always be best!