Looking for knowlage to advance some automation triggers

Regarding energy detection, there are blueprints about this.
This is the one I use for my washing machine:
https://community.home-assistant.io/t/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes/254841
Maybe it helps you, too.