I'm not sure what Is the IoX device, but I have an ISY994 firmware version v.4.9.0. I am getting the gate status from a relay on the gate control board. (It was a long time ago). My 2450 I/O link provides the sensor status to the ISY.
This is the code:
End Gate Activity - [ID 0068][Parent 0023]
If
Status 'My Devices / My Sensors / Gate Open Sensor' is Off
Then
Run Program 'Text: End Gate then' (Then Path)
Run Program 'Gate Closed Car Activity ' (If)
Else
Run Program 'Text: End Gate Else' (Then Path)
Run Program 'Gate Closed Reset Switches' (Then Path)