If you don’t want to pay 15 euros for a simple script, I would say, and you have a minimum knowledge of a programming language, you can do it yourself with the help of @Brent_Peterson resource
[Release] SmartTrafficLights
GitHub SmartTrafficLights