Could the issue be that you want switch.back_sprinkler, not switch.back_sprinker?
I’m pretty sure that you can’t use templates as a value for for: at this time. You can probably get around this by creating a template sensor that compares the timestamp to your slider value. Then trigger your automation from that sensor.
Take a look at the alarm clock thread if you need some examples of time calculations with sliders.