You can do it in Socket (type G) settings:
Ajax app
Devices
Select the device
Settings
In the Contact state field, select the required option: Normally Closed or Normally Open