Samsung (not smart) TV card using ir commands

I recently looked into setting up tv card using smartthings api but learned that my tv is not supported. I was able to add it with ha samsung integration, but has limited functionality. I am using my broadlink rm4 - learned all button codes (b64) and created scripts.

samsung_tv_power:
sequence:
- service: remote.send_command
target:
entity_id: remote.my_rm4_entity
data:
command: b64:learnedcode

I tested this with button, works

show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: script.samsung_tv_power
target: {}
icon: mdi:power

Now I am looking for a good layout/card (or combination of, ie mini media player w/ grouping) for a remote using these elements. Has anyone out there done this and have any suggestions? There are some good examples for tv-card, but not applicable.

i use this:

using a bunch of learned custom codes on an ir blaster to a very old lgtv…

I looked at this but didnt see how to use the buttons to exec scripts (i manually learned codes and created scripts, not remote.learn_command). I ended up just using different layout cards, looks ok in mobile but scattered in dashboard. Not sure how to group all these cards to look good in desktop dashboard yet.

views:
  - title: Home
    cards:
      - type: horizontal-stack
        cards:
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_power
              target: {}
            icon: mdi:power
            icon_height: 50px
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_smarthub
              target: {}
            icon: mdi:hub
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_source
              target: {}
            icon: mdi:power-plug
      - square: true
        type: grid
        cards:
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_1
              target: {}
            icon: mdi:numeric-1
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_2
              target: {}
            icon: mdi:numeric-2
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_3
              target: {}
            icon: mdi:numeric-3
          - type: custom:blank-card
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_4
              target: {}
            icon: mdi:numeric-4
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_5
              target: {}
            icon: mdi:numeric-5
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_6
              target: {}
            icon: mdi:numeric-6
          - type: custom:blank-card
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_7
              target: {}
            icon: mdi:numeric-7
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_8
              target: {}
            icon: mdi:numeric-8
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_9
              target: {}
            icon: mdi:numeric-9
          - type: custom:blank-card
          - type: custom:blank-card
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_0
              target: {}
            icon: mdi:numeric-0
          - type: custom:blank-card
          - type: custom:blank-card
        columns: 5
      - square: false
        type: grid
        cards:
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_vol_up
              target: {}
            icon: mdi:plus
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_vol_mute
              target: {}
            icon: mdi:volume-mute
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_ch_up
              target: {}
            icon: mdi:triangle
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_vol_down
              target: {}
            icon: mdi:minus
          - show_name: true
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_ch_list
              target: {}
            name: null
            icon: mdi:list-box-outline
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_ch_down
              target: {}
            icon: mdi:triangle-down
        columns: 3
      - type: horizontal-stack
        cards:
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_menu
              target: {}
            icon: mdi:menu
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_guide
              target: {}
            icon: mdi:television-guide
      - square: true
        type: grid
        cards:
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_tools
              target: {}
            icon: mdi:tools
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_up
              target: {}
            icon: mdi:arrow-up-bold
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_info
              target: {}
            icon: mdi:information
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_left
              target: {}
            icon: mdi:arrow-left-bold
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_ok
              target: {}
            icon: mdi:hexagon
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_right
              target: {}
            icon: mdi:arrow-right-bold
          - type: custom:blank-card
          - type: custom:blank-card
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_down
              target: {}
            icon: mdi:arrow-down-bold
          - type: custom:blank-card
        columns: 5
      - type: horizontal-stack
        cards:
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_return
              target: {}
            icon: mdi:arrow-left-bold-hexagon-outline
          - type: custom:blank-card
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_exit
              target: {}
            icon: mdi:exit-to-app
      - type: horizontal-stack
        cards:
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_a
              target: {}
            icon: mdi:alpha-a
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_b
              target: {}
            icon: mdi:alpha-b
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_c
              target: {}
            icon: mdi:alpha-c
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_d
              target: {}
            icon: mdi:alpha-d
      - type: horizontal-stack
        cards:
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_back
              target: {}
            icon: mdi:arrow-left-bold-outline
            icon_height: 50px
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_play
              target: {}
            icon: mdi:play
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_pause
              target: {}
            icon: mdi:pause
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_stop
              target: {}
            icon: mdi:stop
          - show_name: false
            show_icon: true
            type: button
            tap_action:
              action: call-service
              service: script.samsung_tv_forward
              target: {}
            icon: mdi:arrow-right-bold-outline
      - type: custom:mini-media-player
        entity: media_player.samusung_tv
        group: true
        info: short
        source: icon
        sound_mode: icon
        artwork: none
title: Samsung TV

samsung_tv_power:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgDSAJCRETYSNxE3EhISEhITERMSExE3EDcTNRMSEhMRExETEhMSEhE3EhIRFBISERQRExISEjYSExI2ETcRNhM2EjYRNxAABdiQkBI2EjYSNhITERMRExITEhIRNxI3EDcRExITEhMREhMSEhMTNRETEhIRFBETERQRExI2ERMSNhM2ETcRNhE3EjcRAAXWkJERNxE2EjcSEhEUERITEhITETcRNxE2ExIRExMSERMSEhITEjYRFBESExIRFBETEhMQNxITEjYRNxA3EjcSNhE3EQANBQ==
samsung_tv_source:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+REjYSNhM1EhIRFBETEhMRExI2EjYRNxITERITEhITERMTNRISEhMSEhITERMSEhEUERMTNhI2ETYRNxI2EzYRNhIABdWQkRI2EjcRNhETExIRFBETERMSNhE3EjcQExEUEhITEhEUETYRExMSEhMREhITERQRExITETQUNhI2EjcRNhI2EjYSAA0F
samsung_tv_vol_up:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+QEzYRNxE2EhMSEhITEhMREhI2EjcSNhEUERIRFBISEhMRNxE2EzYSEhITERMSEhEUERMTEhEUETYRNxE3EzYRNhEABdeRkBI3EDcSNhITERMSExATExIRNxI3ETcQExITERQRExISETcSNhI3ERMRExETEhMRFBETEhMQExM2EjYRNxE2EjcRAA0F
samsung_tv_vol_down:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJGQEjcRNhE3EhMSEhMSERQREhI2EjcSNBMSExIRFBISExIRNxA3EhMRNxEUERMSEhITEhISExE3ERMSNhE3EjYSNhIABdaQkBI2EjcSNhEUERISExETEhMRNxI1EzYSEhITERQREhITETcSNhETETcSExISEhMRExISEhMRNxEUETYRNxI2EjYRAA0F
samsung_tv_vol_mute:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+SETcQNxE3EhMRFBESEhMRExM2ETcRNhEUEhITEhEUERIRNxI3EjYRNxAUEhITEhEUERMRExISEhMSNhI2EjYSNhIABdePkRE3EjYRNxITERMRExITEhITNRI3EDcSExISEhMRExISEjYTNRI3ETcRExETERQRExITEBQSEhMSEjYRNxE3ETcRAA0F
samsung_tv_ch_up:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+SEjYRNhE3ExITEhISERMSEhM2ETcRNxAUEhISExETEhMRExE3EhMSEhE3EhIRFBISETcSExE2EzUTEhE3EjYRNxEABdaQkRI1FDYRNhISEhMSExISERMRNxI2EjYSExAUERMSExITERMQNxMSEhMSNhESExIRFBI2ERMSNhE3EhISNxE2ETcRAA0F
samsung_tv_ch_down:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+REjYRNxE2ExISExISERQREhM2EjYSNhEUEBMTEhEUERMRFBATExISExE3ERMRExITEjYSNhE2EzYSEhM1EjcRNhEABdiOkhI2EjYSNhEUEBMTEhEUEhISNhI2EjYRFBETERMSEhMSERQRExISEhMSNhISEhMQFBI2EjYRNxI2ERMRNxM2ETcRAA0F
samsung_tv_ch_list:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+QEzYRNxE2ERQRExMSERMRExI2EzYSNhIRExISExETExIRNhI2ExISNhEUETYSNhEUERMSEhI2EhMRNxITERISNhIABdePkRI2EjYSNhITERMRExMSEhMRNxE2ETcRFBISEhISExISEzUTNhESEzUTEhI2EjcQExEUEhISNxETEjUTEhITEjYRAA0F
samsung_tv_menu:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+REzYSNhE3EBQSEhMSEhISExA3EjcSNhISEhIRFBETExISEhI2ERMTNhE3ERMSEhEUEjYRExI3EBMSExE3ETcSNxEABdaRkBE2EjcSNhETEhMRExETExISNhE3ETcRExMSERMSExETERMTNhISETYSNxISEhMRExI2EhITNhETERQRNhE3ETcSAA0F
samsung_tv_smarthub:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCQEjYSNxI2ERMSEhITEhITEhE2EzUSNxISEhMRExETEhMSNhEUERITNRM2EjYRNhITEhITNhE3ERISExITERMSNxAABdePkRI2EzYRNxESExIRFBETExIRNhI2EzYSEhEUERISExITEjYRExETEjYTNhE3ETYRFBETETcTNhATExISExISEjYRAA0F
samsung_tv_guide:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJKREjYRNhM2ERMSExETERMRFBI2ETcRNxETERQSEhEUERMRNxE3EjYRNxISEhMSNhISEhMQFBETEhMRNxE3EhIRNxEABdeQkRE3EjYQNxITEhMRExITEBMSNxI2EjYRExISEhMRFBETEjUTNhI2EjYRExISEzYSEhEUERISExITEjYRNhEUEjYRAA0F
samsung_tv_tools:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCQEjYTNhI2ERQQExITEhITEhE3EjYSNhETExIRExISExISNhI2EhISNhMSEhISNxATExIRFBE3ERISNxI2EhMRNxEABdeOkhE3ETcSNxETEhIRExMSERQRNxE2EzUTEhEUERISExEUETcRNxAUETcSExETEjYSEhEUERMTNhESETcSNxISEjcRAA0F
samsung_tv_info:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCQEzYRNxI2ERQREhMSEhMRExE3EjYSNhISEhMRFBESExISNhM1EjcQNxE3EhMRExITEBQRExMSEhMRExI1EzYRNxEABdeQkRE3EjYRNxISEhMSExESEhMSNhI2EjcQExITEhISExEUEDcRNxM1EzYRNhITERMRFBISEhISExISEhMRNxA3EjcRAA0F
samsung_tv_up:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgDSAJCQETcSNhI2ERMSExISEhISExE3EjYRNxISEhMSEhMSERMRExITEhITEhEUETYSNhITETcRNhI2EjYSNxESExISNhIABdaQkBM2ETcRNhEUERMTEhETERMSNhM2ETYRExMSEhMRExISERMSExEUERMSEhE3ETcSExE4EDYTNhI2ETYRFBISEzUSAAXWj5IRNhE3EzUSExETEhISExEUEjYRNhE3ERQRExISEhMSEhITERMSEhITERMTNhE2EhISNxI2ETYRNxE3ExIRFBE2EQANBQ==
samsung_tv_down:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgDSAJCRETYSNhI3ERMSEhITERMRFBI2ETYTNRMSEhMRExISEhMSNhETExIRFBESEjYTNhISEhMRNhI2EzYSNhESEhMRNxIABdaQkRE3EjYTNhESERQRExITEhMRNhI2ETcTEhITERIRFBISEjcRExISERMTEhE3EjYRExEUETcRNxA3EzYSEhITETcQAAXYj5IRNhE3EjYTEhEUEBMTEhETEzYRNhE3ERQSEhMSERMSEhM1EhMRFBESEhMRNxE3EhMRExE3EjYRNxI1ExISExI2EQANBQ==
samsung_tv_left:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCQEzYQNxI2ExISEhISEhMRExI3EjYQNxITEhISExITERISNhMSETcSExETEjYRNxITERISNxETETcSNxATExISNhIABdaQkRE3EjYRNxEUEhISExESEhMSNhI3ETcQExITERQRExITETYSExE3ERQQExI3ETcSEhITEDcSExI2EjYSEhEUEjYRAA0F
samsung_tv_right:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCRETcRNhI2ExISExISERMRExM2ETcSNhETEhISExEUERMSEhE3ERQSEhMSETYTNhETEjYTEhE2EjcSNhISEhMQNxMABdaRkBI2ETcSNhEUEhISEhITERMSNhI3ETYRFBISEhMRExETEhMSNhITERMRExE3ETcTEhE3ERMRNxE3EzUSEhITEjYSAA0F
samsung_tv_ok:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+REjYSNhI2EhMRExETERQSEhE3EjcRNhISExIRFBESExISExISERQRNhITEjYSNhEUETYRNxI2EhMRNxISEhISNxIABdWQkRI2EzYRNhITEhISExETEhISNhM1EzYRExISEhMRExITERMSEhITETcRExI2EjYRFBE3ETcQNxITEjYRFBESEjcSAA0F
samsung_tv_return:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCREjYQNxE3EhMSEhITERMRExM2ETcRNhEUEhIRFBETEhIRFBISExIRNxE2EhMRNxMSETcRNhI2EhMSExE2EhMSNhIABdWRkBM2EjYRNhITEhITEhEUEBMSNhI3EjYREhMSEhMSEhITERMSEhEUEjYRNxAUETcRFBE3ETYRNxITERQRNhETEzYRAA0F
samsung_tv_exit:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCRETcQNxI3ERMSExETERMSExI2EjYRNhITEhMSEhEUERITNhISEzUSNxESEzYSEhITERMSNhETEhMSNhEUEDcSNhEABdePkhI2EjYSNRITEhMRExITEBQRNxE3ETcRFBATExISExETEjYSEhI2EjcSEhE2ExIRFBISEjYRExEUEjYSExE3EDcSAA0F
samsung_tv_back:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgAYAY+REjYTNhI2ERMRExITERMTEhE3EjUTNhETEhMRFBESExIRNxITETcRExETExIRNxITERMSNhETEjcSNhE2ERQSNhIABdeQkRE2EzYSNhEUERMSEhISExIRNxI3EDcSExETEhMRExISETcTEhI2ERMRExITEjYTEhETETcRExI3ETcRNhITEjYSAAXXj5ETNhE3EjYRFBATExISExISEjcRNhE3EhMRExITERMSEhE3EhMRNxETERQRExM1EhIRFBE3ERQSNhE2ETcSExI2EgAF14+SEjYRNxE3EhIRFBISERQRExI2ETcSNhEUEBMTEhEUEhISNxESEjYSExEUERMSNhETExISNhEUETYSNhI3EhIRNxIADQU=
samsung_tv_play:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+REjYRNxI2EhITEhEUERMQFBI2ETcSNxESEhMSEhMSEhMRNhI2ETcTEhEUERISNxETEhMRExISETcTNRI3ERMSNhIABdePkhE2EjYSNhITERQREhMSERQSNhE2EjYSExETEhMRExISEjcSNhE3ERMSEhMSETcSEhETEhMRFBI2ETYTNRITEjYSAA0F
samsung_tv_pause:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCREjYSNxA3EhMSEhEUERMSEhE3EjYTNhETEhISExISERQSEhI2EhITNRMSERQRNhITEjYRExM2ERMSNRI3EhITNhEABdeQkRE2EzYSNhETEhMRExISExISNhI2EjcREhITEhITEhEUERISNhMSETcSExETEjYSEhM2ERMSNRMSEjYSNxETEDcTAA0F
samsung_tv_forward:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+RETcSNxA3EhISExITERMSEhI2ETcTNhETEhIRExMSERQRExISERQRNxISEhMQNxITEjYSNhI3ERIRNxI3ERMSNhEABdeQkRI2EzUSNhETExIRFBETERMRNxI2EjYSExAUEhISExEUERMSEhETEjcSEhITEDcSExI2ETcQNxMSETcSNhITEDcSAA0F
samsung_tv_a:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgDSAI6SEjYRNxE3EhITEhISEhMQFBI2ETcSNhETERQRExMSERMRExITETcSNhEUEDcSNhMSEjYRNhMSEhMSNhETERMSNhIABdeOkhI2ETcSNhISERQSEhMSERQRNxA3EjYTEhISERMSExETEhMRFBA3ETcRFBE3ETcQFBE3EjYRFBATEzYRExMSETcRAAXXj5IRNhI2ETcTEhEUERIRFBETEzYRNhE3ERQRExMSERMSEhEUERMSNxE2ERMSNxI2ERMSNhE3ERQRExI1EhMRFBE3EQANBQ==
samsung_tv_b:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+REjYRNxE3EhMQFBISExISEhI2ETcSNhITERMRExITEhISExETETcRExM2EhIRFBATEzYRNxETEjYSEhI3ETcRNxAABdiPkhA3ETcSNhITERISExEUERMSNxA3ETcSExISEhISEhMSERQRExE3EhISNhITERMRExI2EjcRExI2EhIRNxM2ETYRAA0F
samsung_tv_c:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCREjYSNhI2ERMTEhEUERMSEhI2ETcTNRITEBQSEhMSEhMRNxATEzYRExI2EhMQFBMREhMSNhEUETcRExE3EjYRNxEABdeQkRI2EjYRNxETERMTEhEUERMSNhI2EjYSEhMSERQREhITETcSExE3ERMRNxETExIRFBATEjcSEhE3EhMQNxE3EjcSAA0F
samsung_tv_d:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCREjYRNxE3ERMSExISEhMRFBE2ETcRNxITERMRExITEhMSEhE3ETcSEhI2EhMRFBESEjcSEhMSETcRFBE2EjYSNhIABdiPkhA3ETcRNxITERMSEhITEhITNhE2ETcSExISExIRFBESExIRNxI2EhISNhITEhITEhE2EhMSExI2EhISNhE3EjYRAA0F

samsung_tv_0:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+SETcQNxI2EhMRFBETERMSEhI3ETcRNxAUEhITEhEUERMRNhITERQRExI3EBMSExISExIRNxE2EjcSEhI3ETYSNhIABdaQkRI2ETcRNxISEhITEhEUERMSNhE3EjYRFBESERQSEhITETcRExITERMSNhITERMRExITEjYRNhM2ERMRNxI3EDcRAA0F
samsung_tv_1:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCREjYSNhI2ERQRExITEBMSExE3EzYRNhETEhMRFBETEhISExETEzUSExAUERMSExITEjYRNhITETcSNhE2EzYSNhEABdeQkRI2ETYSNxISEhMRExISERQSNhE3EjYSEhITERMREhMTERMTEhE3ERMSEhITERQRExE3EjYSEhI3ETYRNxI2EzYRAA0F
samsung_tv_2:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+REjcRNxE3EBQRExMSEhMRExE3EjYSNhEUERMRExITEhIRNxITETYSExISEhMRFBESEhMSNhITETcQNxI3ETcSNhEABdeQkRI2EjcRNhISEhMRFBETERMRNxI2EjcREhITERQRExMSETYRFBI2EhMRExEUEBMSExMSEjYQFRE2EjYRNxI3EDcSAA0F
samsung_tv_3:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+SETYTNRM2EhISExAUERMSExE3ETcRNxETEhMRFBETEBQSEhM2ETcQFBISEhMRExITETYTEhITETcRNxE2EjcSNhEABdePkhE2EjcRNxEUEBMRFBETExIRNhM2EjYRExITEBQRFBETEhMRNxA3ERQRExITERMSEhI2ExIRFBA3ETcTNRI3ETYRAA0F
samsung_tv_4:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCRETcRNxI2ERQQExMSERQRExI3ETYRNxEUERMSEhEUEhISExETERMRNxITERQRExAUETcRNxI2EhISNhI3EjYRNxEABdaQkRE3EjcRNhETEhMSExETEhISNhI2EzYRExETERQSEhITEBMTEhITETcRFBESExISEhM2ETYRNxITEjYRNxI2ETcRAA0F
samsung_tv_5:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+SETcRNhI3EhISExESExISExE3ETcRNhITEhMRERQTERITNhETEhMRNhEUERMSExEUEBMSNhM2ERMSNhI2EjYSNhEABdePkRE3EjYTNRITERMRExMSERQRNxE2ETcRFBISEhIRFBETEjcSEhETEjYSExISEhMQExMSEjYSNxETEDcTNhE3ETcRAA0F
samsung_tv_6:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgBGAJCRETcSNRI3EhMSEhETERMSExE3ETcQNxMSERQSEhEUEBMSExI2ExIRNxETEhISExITETcQExM2ERMRNxE3EjYRNxIADQU=
samsung_tv_7:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI6TETYSNhI2EhMQFBISEhMRExI3ETYSNhITERMSExAUERMSExITETcRNhITERMSExEUEDcSNhITERMSNxA3EjYSNhIABdaRkBI3ETcRNxETEhITEhITERMQNxI3ETcSExETEBQSEhMSEhMRExE3EjYRExITERQREhM2ETcRExITEDcSNxI2ETcRAA0F
samsung_tv_8:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAI+REjYSNhE3EhMRExETEhMSEhI3ETcQNxITERMTEhEUERISNhITEjYSNxATExISEhITERQQNxITEhISNhYyETcSNhEABdeRkBM1EzYRNxAUERMSExISEhMQNxM2ETcRExITERMSEhITEjYRFBE2ETcTEhITEhIRExETEzYSEhMSETYRNxM2EjYRAA0F
samsung_tv_9:
    sequence:
      - service: remote.send_command
        target:
          entity_id: remote.ir_uhf_gateway_living_room
        data:
          command: b64:JgCMAJCREjcQNxI2ERQRExISERMTEhI2EjcQNxETEhMRFBESEhMRExM2ETcRNhITEhISExEUETYRExMSEhMRNhI2EjYTNhEABdaPkRE3EjcRNxETERMRFBETExIRNhI2EzYSEhISERMSExEUERMSNhE3ETcSExETEhIRExM2EhISExAUEjYSNhE3EjUSAA0F

i’m gonna guess that you’ve invested too much to be willing to change you path, but to invoke a script, this is how i invoked a script for the skip forward button while passing it 3 fields:

          skip_forward:
            icon: mdi:skip-forward
            service: script.androidtv_send_command_pair
            service_data:
              entity_id: media_player.great_room_fire_tv
              command1: >-
                sendevent /dev/input/event4 4 4 786611
              delay: 3
              command2: >-
                sendevent /dev/input/event4 4 4 786611

also if you’re going to past code, please choose the pre-formatted text button so it looks like mine above.

Thanks for input, your right I’m past the PNR. Ill spend a little more time to figure out how to limit width in dashboard to squeeze cards in place like mobile view, but thats it. I haven’t posted a lot of code, unaware of the format option.

Update - using custom-layout allows specifying width

views:

  • title: Home
    type: custom:masonry-layout
    layout:
    width: 300
    max_cols: 1

Now I would like to scale it down when in desktop view. Is this possible?

1 Like

PLEASE use the preformatted text (/) control when pasting code this is YAML where spacing and curly quotes matter. Preformatted text allows us all to read your code