SONOFF Matter MINIR4M

Hi, can anyone tell me how to configure a SONOFF Matter MINIR4M WiFi for the first connection from its on-board button without immediately connecting it to the wifi network and being able to use it with a switch input or with a button input?

Please contact SONOFF support:

Thx in advance.