home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.71k stars 29.97k forks source link

PS4 wrong media content type #21896

Closed CooleRnax closed 5 years ago

CooleRnax commented 5 years ago

Home Assistant release with the issue: 0.89.0

Last working Home Assistant release (if known): Never

Operating environment (Hass.io/Docker/Windows/etc.): Docker

Component/platform: https://www.home-assistant.io/components/ps4/

Description of problem: When I play red dead redemption 2 HA thinks that media_content_type is music

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant): None

Additional information: here how attributes look like

{
  "media_content_id": "CUSA08519",
  "media_content_type": "music",
  "media_title": "Red Dead Redemption 2",
  "source": "Red Dead Redemption 2",
  "source_list": [
    "Red Dead Redemption 2"
  ],
  "friendly_name": "PS4",
  "icon": "mdi:playstation",
  "entity_picture": "/api/media_player_proxy/media_player.ps4?token=token&cache=d79df436fd216182",
  "supported_features": 6528
}
SeanPM5 commented 5 years ago

I think this might be more of a limitation in the core media_player component. From /components/media_player/ docs:

media_content_type: A media type. Must be one of music, tvshow, video, episode, channel or playlist.

It would be useful to have "game" and "app" added to media_content_type for things like this.

ktnrg45 commented 5 years ago

Yep correct^^ There isnt a more accurate option in the core as of now. Everything will be show up as music.

jamieshaw commented 5 years ago

I don't know how reliable this is as a whole; I've noticed that Movies via Plex via Apple TV component also default to 'Music'.