How to add device id or ident to calculator?

Adding information about device to the calculator's interval JSON

You can copy any information from device messages into interval JSON generated by calculator using counter type ”parameter”, method ”first” and parameter is either ”device.id” to copy device ID or ”ident” to copy its ident. 

You can just fill the name in counter configuration to copy parameter from message JSON to interval JSON under the same name:

If you want to format copied values into different representations you can use an interval counter with type “expression” and corresponding formatting expression.