Hi,
The raw data (input message) of the transformation is generated by the device template instance which has been created from a device model. The displayName property (also some others such as a modelId) is not contains in the raw data. The workaround for your needs at the consumer end is using the REST API and query this value from the device model.
Thanks
Roman