Best way to detect a pattern in a power sensor?

I am running this blueprint and that works fine for my washing machine and dryer: 🔌 Detect and monitor the state of an appliance based on its power consumption - V2.1.1 - Updated!