Keeping it maintainable
The difference between an automation system that lasts and one that frustrates is documentation and restraint. We keep a written list of devices, where they are, which hub or account they belong to, and what each rule does. We avoid chains of rules that depend on each other in ways nobody can trace in a year. And we prefer mainstream, well-supported equipment over whatever is cheapest, because an orphaned device with a dead app is a wall fitting that has to be replaced.
We also keep the household in mind, not just the person who commissioned the system. If a partner, a child, a guest or a house-sitter cannot operate the lights and the locks without instruction, the system is not finished. Physical controls stay, the app is a convenience, and the handover ends when someone else in the house can run it.