Best way to setup a state machine via automations?

we have a lot of them here: Community Guides - Home Assistant Community

however the reality is that ha is soo flexible that there are a ton of common ha tasks. many of them are consolidated into blueprints (e.g. motion detection)…

here’s one that’s used for dishwasher and washing machines: 🔌 Detect and monitor the state of an appliance based on its power consumption - V2.1.1 - Updated! - #4 by siklosi

i think if you asked the community for what their common tasks are, i bet you’d get hundreds of passionately different answers…