MQTT Dimmer, on_command_type when on/off switching

I would like a feature where on_command_type: (onoff, for example) sends payload_on/off only when switching the light.

For context I’m using an ESP Easy ESP8266 which for PWM-control.
When using on_command_type: last, the light should dim to set PWM but is instead turned on to 100% brightness.
When using on_command_type: before, the light flashes at 100% brightness before dimming to set PWM.
When using on_command_type: brightness, the switch itself neither turns the light on nor off, dimming works fine though.