In the UK at least batteries and an inverter are actually quicker to pay off using an economy 7 electricity tariff since power overnight is less than half the price of during the day and is typically from Wind power and imported Nuclear from France. That can pay off in less than 4 years and will last 10-15 with li-po.
If you don't have a roof to put solar on then there are some cooperative schemes where you can own part of a solar/wind installation and still save on your bill. A national one is https://rippleenergy.com/ but there may be more local schemes that you could help fund and get the payback from, residents are banding together to build solar farms all over the country.
The big energy companies have messed up this transition to green energy terribly and its considerably cheaper to make your own power than buy from them, which lets be honest it shouldn't be.