I based my script on the protocol specs (Available for download from the manufacturer's website).

It is very basic, but provides an easy insight on what data is received. When using the DIM or BRIGHT function for example, additional data is provided in bytes 4 and 5 of the payload. It tells you about dimlevel and rate etc.

Byte 6 of the payload is the RX_TX_SWITCH byte. It can be used as some sort of handshake method. Among other things, it tells you about whether a given command was received ok by a device.