Define device with YAML

Hi,
I’m new to HA and trying to move all my existing devices to it. Till this time I was/am OpenHAB user.
I don’t know if what I want to do is even possible. I’m defining my IR sender (Tasmota, MQTT protocol) with button entities. But all of them shows up on my overview at buttons section. I would like to distinguish them as per different device. Now everything is like button.tv_power, button.cdplayer_play, etc. And even buttons from completely different devices. What I would like to have is something like this: tv.button.power, tv.button.volume_up, cdplayer.button.play, etc.
Is this possible?