Modify sun elevation threshold with input number variable

Is it possible to create an automation using sun.sun elevation and use an input_number to set the above/below parameter?

In able to do it with timers to set duration, but I can’t seem to figure this one out…

Yes, see the fourth example here: