Lovelace Discrete Fan Speeds

I have several Leviton ZW4SF-1BW 4-speed fan controllers. I would like to control the fan speed using discrete values: Low (25%), Medium (50%), Medium-High (75%), and High (100%) from the entity card in Lovelace.

Currently Lovelace defaults to a 0%-100% slider which makes it harder to set a specific speed:
Screenshot_1

How can I change this slider to have a custom number of discrete points? Something like this:
Screenshot_2

Found a custom integration that allows for this.

Use an input_number helper (0 … 4) and an automation to set a speed dependently on a selected value.

1 Like

I just saw this today:

1 Like

Thank you for the options!