If you have switches and want to dim a light while pressing the button this is not possible.
A lot of devices understand/support those commands (e.g. hue lights/zigbee and Shelly Gen2 devices) so it would be very nice to be able to do automatisations that feel more natural (compared to a normal dimmer switch…)
This is easily automated… Sample:
Short version - on button press, pump current state of light brightness +/- your preferred amount of change as new brightness to the turn on action (which is how you change a lamps brightness)