Show entity information without clicking on it

Hello all, I have been trying to find a way to show the information of an entity without clicking on it. I plan to have a function, which based on a condition, zooms to the entity and automatically shows its information. Is there a way to do this? Can someone please point me in the right direction? Thanks!