Commands and text depending on dimmer state

Hello! In HC2 I have a device described below. Is it possible to make a suitable solution in HA?

I’ve made my own garage door opener using a Z-uno, with an integrated fingerprint reader. It uses dimmer channels for different kind of states and commands. As an example it shows “closed” if dimmer1 is 0, “open” if 1 and “stopped on the way up” if 2 and so forth…

In HC2 I have a VD with buttons that can change the command value and display these states.

So, is there any way to make something similar in HA?

Thanks!