How to setup entity ID?

Hi
I use MQTT , and i need to setup entity ID for my devices.
How can I do it?

Thank you