Solar energy will make your ROI longer compare to using grid only, I was in this state of yours before and I ended up building a solar power anyways for personal use but I still have grid power too, so all I do is switch to grid when available and switch back to solar power when grid is gone, yea in my country grid doesn't stay for 24hrs