sermayoral / ha-samsungtv-encrypted

Samsung TV Encrypted Models (H & J Series) custom component for Home Assistant
Apache License 2.0
38 stars 24 forks source link

How to change the source labels? #33

Open photonforge opened 4 years ago

photonforge commented 4 years ago

Hi, Is there a way to labels the sources detected ? As of now the sources available are TV and HDMI 1-4. I tried adding
sourcelist: '{"TataSky": "KEY_HDMI1", "OSMC": "KEY_HDMI2", "HA": "KEY_HDMI3", "Apple TV": "KEY_HDMI4"} to the config, but that is throwing up an error:

Invalid config for [media_player.samsungtv_encrypted]: [sourcelist] is an invalid option for [media_player.samsungtv_encrypted].

`

onemico commented 4 years ago

Came here just to ask for this, it appears to be supported on the custom version: https://github.com/roberodin/ha-samsungtv-custom

Not sure if that helps you. I am far from a competent coder, so don't want to try and dip in myself :)

sermayoral commented 4 years ago

Hi @onemico @photonforge

This version of the component implements a different source control than roberodin's one. I was not sure if this functionality was important for you, so it will be implemented in a future release :-)

photonforge commented 4 years ago

@sermayoral thanks!!!