Looking for an entity type like "cover" that can be in 5 states, including a state "stopped in the middle"

Hello.
Home Assistant has a cover entity type that is suitable for many things such as blinds or garage doors. However, as far as I can see it only defines 4 states: open, closed, opening and closing, but not the state “stopped in the middle”. When the cover is stopped by request, it is considered to be either open or closed depending on the moving direction before the request.

The device I have could be in those 5 states, and I want action “open” to be available if the current state is either “stopped”, “closing” or “closed”, action “stop” to be available if the current state is either “opening” or “closing”, and for action “close” analogously as for “open”.

Are there any built-in or community developed entity type that supports the 5 states, preferably with MQTT platform implementation and UI cards?
Thanks!

I think I would solve this with an input_select helper and one or more automations to set the right option (depending on the state of the cover and the event of stopping it during movement).