Media_player and helpers not work together?

Hi, I create media_player to control my old samsung TV from Google home (by sent IR commands from broadlink). But I have a problem, maybe someone know why it can’t press “helper buttons” (for example input_button.tv_samsung_power_on) from media_player type device in configuration.yml? Here media player example:

media_player:
  - platform: universal
    name: samsung_tv
    commands:
      turn_on:
        service: media_player.turn_on
        target:
          entity_id: input_button.tv_samsung_power_on
      turn_off:
        service: media_player.turn_off
        target:
          entity_id: input_button.tv_samsung_power_off
      volume_up:
        service: media_player.volume_up 
        target:
          entity_id: media_player.living_room_tv 
      volume_down:
        service: media_player.volume_down 
        target:
          entity_id: media_player.living_room_tv 
      volume_mute:
        service: media_player.volume_mute
        target:
          entity_id: media_player.living_room_tv 
      media_play:
        service: media_player.media_play 
        target:
          entity_id: media_player.living_room_tv 
      media_pause:
        service: media_player.media_pause 
        target:
          entity_id: media_player.living_room_tv 
      media_previous_track:
        service: media_player.media_previous_track 
        target:
          entity_id: media_player.living_room_tv 
      media_next_track:
        service: media_player.media_next_track
        target:
          entity_id: media_player.living_room_tv 
    device_class: tv
    unique_id: samsung_tv

Here is example of helper button

Samsung_tv card:
image

Helper buttons are working ideal (send remote commands on TV), but if i press power button on TV card, nothing happened.

Do not quote your pasted config. Format it correctly with code blocks. https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

Thx, done!!

1 Like