How to export epub using Page Break as split method in a macro

I’m trying to automate converting a .odt document into epub, using “Page Break” as Split method.

I can do this manually from the dialog EPUB Export, etc.

However, while trying to do it from a macro (self recorded), it uses “Heading” as Split method, no matter which method I choose. The values in the macro are different and look correct and logical to me:

For “Heading” as Split method:

For “Page Break” as Split method:

When I try to convert into epub from the command line, using “–convert-to epub”, it does the conversion with “Heading” as Split method as well.

Is there a way to use “Page Break” as Split method for automated EPUB conversion? Or is there a bug somewhere?