You can do it in WallSwitch settings:
- Ajax app
- Devices
- Select the device
- Settings
- In the Contact state field, select the required option: Normally Closed or Normally Open
The setting is available for devices with firmware version 5.54.1.0 or higher