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
72.72k stars 30.45k forks source link

Remap valides alexa input names to friendly input names #30811

Closed BenoitAnastay closed 4 years ago

BenoitAnastay commented 4 years ago

Home Assistant release with the issue: version: 0.103.6

Last working Home Assistant release (if known):

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

arch: armv7
channel: stable
hassos: "2.12"
homeassistant: 0.103.6
hostname: hassio
logging: info
machine: raspberrypi2
supervisor: "195"
supported_arch:
- armv7
- armhf
timezone: Europe/Paris

Integration: https://www.home-assistant.io/integrations/webostv/ https://www.home-assistant.io/integrations/alexa/

Description of problem: Can't switch to HDMI port if a friendly name was set

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

media_player:
  - platform: webostv

Traceback (if applicable):

Additional information: As long as Alexa will not accept friendly name I propose to set a per entity VALID_SOURCE_NAME_MAP to remap friendly name to valid alexa input name ex "PC" -> "HDMI1" or even better if it's possible to automatically resolve it

probot-home-assistant[bot] commented 4 years ago

Hey there @home-assistant/cloud, @ochlocracy, mind taking a look at this issue as its been labeled with a integration (alexa) you are listed as a codeowner for? Thanks!

probot-home-assistant[bot] commented 4 years ago

Hey there @bendavid, mind taking a look at this issue as its been labeled with a integration (webostv) you are listed as a codeowner for? Thanks!

ochlocracy commented 4 years ago

@BenoitAnastay Please provide me the supported_features value and the source_list attribute with the associated friendly names for you WebOSTV.

BenoitAnastay commented 4 years ago

@ochlocracy

source_list:
  - Amazon Alexa
  - Amazon Prime Video
  - Chromecast
  - CuriosityStream
  - GALERIE
  - Google Play Films
  - HDMI 3
  - HDMI 4
  - LG Channels
  - LG Content Store
  - Musique
  - Navigateur Web
  - Netflix
  - OCS
  - PC
  - Photo & Vidéo
  - Plex
  - RMC Sport
  - Rakuten TV
  - Smart IPTV
  - XPlay
  - YouTube
friendly_name: TV Benoit
supported_features: 20413

Sources names are configured throught the TV interface, in this setting PC is HDMI 1 and Chromecast is HDMI 2

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.