From Failed Side Project to Profitable Venture

I had this side project a while back where I tried building a custom home automation system. It never really took off because the setup was too complicated for most people. But instead of scrapping it entirely, I realized the scheduling module I’d built was actually pretty solid. I repurposed it into a standalone productivity app for freelancers, and it’s been bringing in some steady income ever since. Has anyone else managed to pivot a failed project into something that actually works? I’m curious what kind of twists or changes made the difference for you.