Device ip in HA

hi. i have alot of devices connected and i have read somewhere that i can get the ip address to show in HA. im now wondering how can it be done all the devices are connected via mqtt and most of them in my switches yaml file.

thanks

//:Erik