ESP8266 Gateway just read all I/O ports

Is there an option to use OMG to just read the I/O state of the ESP8266?

I’d like to read the digital inputs of my alarm system, so ideally the gateway would send a message on every state change.

Thanks!