home-assistant-libs / pychromecast

Library for Python 3 to communicate with the Google Chromecast.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Identify if the device is a Speaker, Television or a Receiver

felipecrs opened this issue · comments

In order to properly classify and render the Media Player in Home Assistant, it would be great if the library could expose whether the device is a real television or just rather a receiver.

Some examples:

  • Sony Android TV -> Television
  • Xiaomi Mi Box -> Receiver (set top box)
  • Nest Hub -> Television (smart display)
  • Chromecast -> Receiver
  • Nest Mini -> Speaker
  • Chromecast Audio -> Speaker (considering that there isn't an "Audio Receiver" class)

Speaker devices can already be classified with the current tooling:

But there isn't a way (which I found) to determine whether it's a television or not.