Area not selectable when choosing a media player (Voice PE problem?)

I have a VPE installed and connected to an area called ‘Lounge’
I can target the devices media player by using its entity id and it all works fine.

However, if I (for example) create an automation to play something from the VPE’s media player, using the area and not the entity id, the area does not show up in the drop down.

If It matters, I am using music assistant.

UPDATE:- This issue only seems to affect the media player ‘next’ and ‘previous’ commands, ‘play’ shows the area fine.

Annoyingly, if I ignore the UI and do it via yaml with the following code, it doesn’t work:-

action: media_player.media_previous_track
metadata: {}
data: {}
target:
  area_id: "{{ area_id(trigger.device_id) }}"

Even though the log shows the area id has been successfully parsed:-

params:
  domain: media_player
  service: media_previous_track
  service_data: {}
  target:
    area_id:
      - lounge

This issue does not seem to affect other media players I have (Roku’s). Only the VPE

Turns out I think the issue is that HA has got confused with its entity id’s. In some situations there is a spurious _2 infront of the entity id, (when selecting the entity from an automation drop down) but when looking at the entity id for the media player against the device itself, it does not have _2

As a final note, it turns out the problem was with the music assistant integration which hadn’t correctly populated its copy of the media players its needs. Reloading the integration fixed it.