{"action":"created","issue":{"url":"https://api.github.com/repos/resoai/TileBoard/issues/94","repository_url":"https://api.github.com/repos/resoai/TileBoard","labels_url":"https://api.github.com/repos/resoai/TileBoard/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/resoai/TileBoard/issues/94/comments","events_url":"https://api.github.com/repos/resoai/TileBoard/issues/94/events","html_url":"https://github.com/resoai/TileBoard/issues/94","id":342104188,"node_id":"MDU6SXNzdWUzNDIxMDQxODg=","number":94,"title":"Media player source name is ugly","user":{"login":"rchl","id":153197,"node_id":"MDQ6VXNlcjE1MzE5Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/153197?v=4","gravatar_id":"","url":"https://api.github.com/users/rchl","html_url":"https://github.com/rchl","followers_url":"https://api.github.com/users/rchl/followers","following_url":"https://api.github.com/users/rchl/following{/other_user}","gists_url":"https://api.github.com/users/rchl/gists{/gist_id}","starred_url":"https://api.github.com/users/rchl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchl/subscriptions","organizations_url":"https://api.github.com/users/rchl/orgs","repos_url":"https://api.github.com/users/rchl/repos","events_url":"https://api.github.com/users/rchl/events{/privacy}","received_events_url":"https://api.github.com/users/rchl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-17T21:58:15Z","updated_at":"2018-07-17T22:22:24Z","closed_at":null,"author_association":"NONE","body":"The media source name shown on media player tile is \"ugly\" (non-descriptive). At least for the component that I'm using to control my Sony Bravia TV (https://github.com/gerard33/sony-bravia-ha).\r\n\r\nLet me show that in pictures:\r\n\r\nThis is how the tile looks like with any of the 4 HDMI sources selected (it shows same for all):\r\n![hdmi-source](https://user-images.githubusercontent.com/153197/42847612-cb35dd36-8a1c-11e8-84c9-7ed816454609.png)\r\n\r\nAs you can see, it shows \"extInput:hdmi\" which is neither precise enough (shows same for all 4 hdmis) nor clean.\r\n\r\nThis is the list of sources shown on clicking the source name:\r\n![source-list](https://user-images.githubusercontent.com/153197/42847678-fc1bfb7e-8a1c-11e8-8489-442a5256ea48.png)\r\n\r\nThat looks nice and correct.\r\n\r\nHere is the state snapshot of the entity:\r\n```\r\n{\r\n    \"entity_id\": \"media_player.mybraviatv\",\r\n    \"state\": \"on\",\r\n    \"attributes\": {\r\n        \"volume_level\": 0.1,\r\n        \"is_volume_muted\": false,\r\n        \"media_content_id\": \"HDMI 4\",\r\n        \"media_content_type\": \"tvshow\",\r\n        \"media_title\": \"HDMI 4\",\r\n        \"source\": \"extInput:hdmi\",\r\n        \"source_list\": [\r\n            \"HDMI 1\",\r\n            \"HDMI 2\",\r\n            \"HDMI 3/ARC\",\r\n            \"HDMI 4\",\r\n            \"AV 1\",\r\n            \"AV 2/Component\"\r\n        ],\r\n        \"friendly_name\": \"MyBraviaTV\",\r\n        \"supported_features\": 23997,\r\n        \"_c\": {\r\n            \"max\": 100,\r\n            \"min\": 0,\r\n            \"step\": 2,\r\n            \"value\": 10\r\n        },\r\n        \"_sliderInited\": true\r\n    },\r\n    \"last_changed\": \"2018-07-17T21:46:06.771413+00:00\",\r\n    \"last_updated\": \"2018-07-17T21:47:04.259447+00:00\"\r\n}\r\n```\r\n\r\nAs you can see here, the better choice to show would be either `attributes.media_title` or `attributes.media_content_id`. Not sure which one is more \"standard\" or common."},"comment":{"url":"https://api.github.com/repos/resoai/TileBoard/issues/comments/405747529","html_url":"https://github.com/resoai/TileBoard/issues/94#issuecomment-405747529","issue_url":"https://api.github.com/repos/resoai/TileBoard/issues/94","id":405747529,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTc0NzUyOQ==","user":{"login":"rchl","id":153197,"node_id":"MDQ6VXNlcjE1MzE5Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/153197?v=4","gravatar_id":"","url":"https://api.github.com/users/rchl","html_url":"https://github.com/rchl","followers_url":"https://api.github.com/users/rchl/followers","following_url":"https://api.github.com/users/rchl/following{/other_user}","gists_url":"https://api.github.com/users/rchl/gists{/gist_id}","starred_url":"https://api.github.com/users/rchl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchl/subscriptions","organizations_url":"https://api.github.com/users/rchl/orgs","repos_url":"https://api.github.com/users/rchl/repos","events_url":"https://api.github.com/users/rchl/events{/privacy}","received_events_url":"https://api.github.com/users/rchl/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T22:22:24Z","updated_at":"2018-07-17T22:22:24Z","author_association":"NONE","body":"I've created an issue for that component (referenced here) so we'll see if that can be fixed there.\r\n\r\nAs for TileBoard, I thought one can work-around it by disabling source and using `subtitle` instead, like:\r\n```\r\n...\r\nhideSource: true,\r\nsubtitle: '@attributes.media_title',\r\n...\r\n```\r\nbut when turning on netflix for example, `media_title` (and also `source`) are disappearing completely...\r\n```\r\n\"attributes\": {\r\n        \"volume_level\": 0.1,\r\n        \"is_volume_muted\": false,\r\n        \"media_content_type\": \"tvshow\",\r\n        \"media_series_title\": \"No info (resumed after pause or                                           app opened)\",\r\n        \"source_list\": [\r\n            \"HDMI 1\",\r\n            \"HDMI 2\",\r\n            \"HDMI 3/ARC\",\r\n            \"HDMI 4\",\r\n            \"AV 1\",\r\n            \"AV 2/Component\"\r\n        ],\r\n        \"friendly_name\": \"MyBraviaTV\",\r\n        \"supported_features\": 23997,\r\n        \"_c\": {\r\n            \"max\": 100,\r\n            \"min\": 0,\r\n            \"step\": 2,\r\n            \"value\": 10\r\n        },\r\n        \"_sliderInited\": true\r\n    },\r\n```"}}
{"actor":{"display_login":"rchl"}}