Improving Samsung TV Control

@sender entity_id is generated based on name.

So if you set name: Living Room TV , then the entity id will (most probably) be media_player.living_room_tv (unless this name was already taken, in which case it might be media_player.living_room_tv_2)

What you’re asking is a HA question though, not a component question.

Jaruba, thank you.

although it might be a HA uestion, it could be a good iead to put in you example… I am a very frequent user and there is so many places in HA in which you can do stuff. I do not even know it… and I think with me a lot of people do not…

This is where I would like to see it:

i will now continue to test due to the fact I am now able to see the device… next is the control of my tv…

@sender For future reference, if you go to “Developer Tools” (left side menu in HA) and then select “States” (top menu), you can then write “media_player” in the “Entity” input field, and it will show all your available media player entity IDs.

@jaruba, thank you. knew it. but if there is no given name a default name will be there and I can not know if it was created by “your” config/plugin. now I do due to my own name reference.

Yes, got it orking on Samsung “the frame”. Next and previous is not supported according to the TV and on and off do work but “off” sets the TV in “frame” mode.

Andy tips on how to totally shut off the TV there?

@sender I have no idea how Samsung Frame works… but the TV is turned off by sending KEY_POWER which turns off any TV I’ve met until now. So it sounds like ur TV is intentionally going to Frame mode with that key, maybe you can change this behavior in the TV’s settings?

Don’t now and i think it is not possible. When the TV is on and i pres the off button it goes to “frame” mode. Pressing th power key some “longer” turn the TV off really.

@sender I believe I saw some work done on allowing to long press keys in the WS module, I’ll look into it but can’t promise anything in regards of when this will be available. And even if I do add it, I can’t make this behaviour the default for turning off TVs, but maybe I’ll make it a setting, we’ll see.

Thank you! i currently do use this:

And this is where forward and backward channel does not work. power does work (on and off) and volume also etc.

@sender What made you think the previous and next buttons have anything to do with channels? They are used for fast forward and rewind of the currently playing media.

Also, if you enable the SmartThings API in your config, you will get much clearer states then “TV/HDMI”, such as what HDMI source is currently active, the channel names for live tv, etc.

@jaruba, yes stupid off me to think that buttons would be next channel :expressionless:

Any chance I can get the actual channel buttons in that card?

Smart thin API relies on internet services, I prefer not to use those.

Some extra info I found:

@sender

Smart thin API relies on internet services, I prefer not to use those.

Whether you use the SmartThings API or not, all data from your TV goes to their cloud anyway, if you enable it in the component though, you at least get to profit from this.

Any chance I can get the actual channel buttons in that card?

I may add the feature of changing channels with those buttons, but I can tell you now that this feature will ONLY work if you enable SmartThings, because changing channels should only be done when live tv is on, and without the SmartThings API it’s impossible to know when live tv is on.

Hi

I have 3x Samsung TVs, however i cannnot get them to work in HA

Two of them got picked up as an integration in the UI, my most newest one however i cannot get at all

Do i need to delete all from being an integration, and use some sort of custom component???

@buzurk I cannot help u with HA’s Samsung TV integration. This discussion is specific to this custom component for Samsung TV:
https://github.com/jaruba/ha-samsungtv-tizen

If u want to try to install it and configure it, I can try to help u more, but my help is specific to this component only, nothing else.

oh okay, not sure if mine is tizen

@buzurk If they’re Smart TVs, then they’re Tizen TVs, afaik Samsung only uses Tizen as the OS for Smart TVs

@jaruba I have just added the smart things API component to my config.yaml, the current channel is a great new feature!

Is there any benefit to sending keys via the API as opposed the the normal way?
I have tried to send channel up but i assume I’m doing something wrong as the TV shows an error message “UP not found. Please try again”

Copy of my script below

'1584629993682':
  alias: TV Channel Up comp
  sequence:
  - data:
      entity_id: media_player.samsung_tv_remote_2
      media_content_id: ST_CHUP
      media_content_type: send_key
    service: media_player.play_media

@AJG That is a bug in my code, I will fix ST_CHUP / ST_CHDOWN in the next release.

Is there any benefit to sending keys via the API as opposed the the normal way?

They are just different, the KEY_ keys don’t have a direct way of changing input sources to TV or specific HDMI, but ST_ keys do.

@AJG Ok, I made a new release that should fix the ST_CHUP and ST_CHDOWN keys.

I recognized this entry in my logs:

Protokolldetails ( WARNING )
Logger: homeassistant.components.media_player
Source: components/media_player/__init__.py:904
Integration: Mediaplayer (documentation, issues)
First occurred: 19:01:36 (9 occurrences)
Last logged: 19:03:07

The websocket command media_player_thumbnail is deprecated. Use /api/media_player_proxy instead.

Just fyi