pqpxoxa

Home Assistant | Remote Card

Oct 17th, 2025
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 18.44 KB | None | 0 0
  1. type: custom:button-card
  2. styles:
  3.   grid:
  4.     - grid-template-areas: >-
  5.         "power source blank  channelnumber channelnumber" "dpad dpad dpad
  6.        volstack chanstk" "dpad dpad dpad  volstack chanstk" "dpad dpad dpad
  7.        volstack chanstk" "home return exit guide subtitles  " "rewind play
  8.        pause  stop forward"  
  9.     - grid-template-columns: 65px 65px 65px 65px 65px
  10.     - grid-template-rows: 65px 65px 65px 65px 65px 65px
  11.     - row-gap: 8px
  12.     - column-gap: 8px
  13.   card:
  14.     - background: transparent
  15.     - border-style: none
  16.     - padding: 20px
  17.     - margin: 0
  18. custom_fields:
  19.   subtitles:
  20.     card:
  21.       type: custom:button-card
  22.       icon: mdi:subtitles-outline
  23.       tap_action:
  24.         action: call-service
  25.         service: script.send_samsung_subtitles
  26.       show_name: false
  27.       styles:
  28.         card:
  29.           - width: 62px
  30.           - height: 62px
  31.           - background-color: "#4b5975"
  32.           - border: none
  33.           - margin: 0
  34.           - border-radius: 22px
  35.         icon:
  36.           - width: 32px
  37.           - height: 32px
  38.           - color: white
  39.           - background-color: transparent
  40.           - padding: 6px
  41.   home:
  42.     card:
  43.       type: custom:button-card
  44.       icon: mdi:home
  45.       show_name: false
  46.       tap_action:
  47.         action: call-service
  48.         service: script.send_samsung_home
  49.       styles:
  50.         card:
  51.           - width: 62px
  52.           - height: 62px
  53.           - background-color: "#4b5975"
  54.           - border: none
  55.           - margin: 0
  56.           - border-radius: 22px
  57.         icon:
  58.           - width: 32px
  59.           - height: 32px
  60.           - color: white
  61.           - background-color: transparent
  62.           - padding: 6px
  63.   guide:
  64.     card:
  65.       type: custom:button-card
  66.       icon: mdi:television-guide
  67.       show_name: false
  68.       tap_action:
  69.         action: call-service
  70.         service: script.send_samsung_guide
  71.       styles:
  72.         card:
  73.           - width: 62px
  74.           - height: 62px
  75.           - background-color: "#4b5975"
  76.           - border: none
  77.           - margin: 0
  78.           - border-radius: 22px
  79.         icon:
  80.           - width: 32px
  81.           - height: 32px
  82.           - color: white
  83.           - background-color: transparent
  84.           - padding: 6px
  85.   return:
  86.     card:
  87.       type: custom:button-card
  88.       icon: mdi:undo
  89.       show_name: false
  90.       tap_action:
  91.         action: call-service
  92.         service: script.send_samsung_return
  93.       styles:
  94.         card:
  95.           - width: 62px
  96.           - height: 62px
  97.           - background-color: "#4b5975"
  98.           - border: none
  99.           - margin: 0
  100.           - border-radius: 22px
  101.         icon:
  102.           - width: 32px
  103.           - height: 32px
  104.           - color: white
  105.           - background-color: transparent
  106.           - padding: 6px
  107.   exit:
  108.     card:
  109.       type: custom:button-card
  110.       icon: mdi:exit-to-app
  111.       show_name: false
  112.       tap_action:
  113.         action: call-service
  114.         service: script.send_samsung_exit
  115.       styles:
  116.         card:
  117.           - width: 62px
  118.           - height: 62px
  119.           - background-color: "#4b5975"
  120.           - border: none
  121.           - margin: 0
  122.           - border-radius: 22px
  123.         icon:
  124.           - width: 32px
  125.           - height: 32px
  126.           - color: white
  127.           - background-color: transparent
  128.           - padding: 6px
  129.   dpad:
  130.     card:
  131.       type: custom:button-card
  132.       styles:
  133.         grid:
  134.           - grid-template-areas: "\". up .\" \"left ok right\" \". down .\""
  135.           - grid-template-columns: 65px 65px 65px
  136.           - grid-template-rows: 65px 65px 65px
  137.           - row-gap: 0px
  138.           - column-gap: 0px
  139.         card:
  140.           - background: transparent
  141.           - padding: 0
  142.           - margin: 0
  143.           - border: none
  144.       custom_fields:
  145.         up:
  146.           card:
  147.             type: custom:button-card
  148.             icon: mdi:chevron-up
  149.             tap_action:
  150.               action: call-service
  151.               service: script.send_samsung_up
  152.             show_name: false
  153.             styles:
  154.               card:
  155.                 - width: 65px
  156.                 - height: 65px
  157.                 - margin: 0
  158.                 - padding: 0
  159.                 - border: none
  160.                 - box-shadow: none
  161.                 - background-color: "#4b5975"
  162.                 - border-top-left-radius: 22px
  163.                 - border-top-right-radius: 22px
  164.                 - border-bottom-left-radius: 0px
  165.                 - border-bottom-right-radius: 0px
  166.               icon:
  167.                 - background-color: transparent
  168.                 - color: white
  169.                 - width: 32px
  170.                 - height: 32px
  171.         left:
  172.           card:
  173.             type: custom:button-card
  174.             icon: mdi:chevron-left
  175.             tap_action:
  176.               action: call-service
  177.               service: script.send_samsung_left
  178.             show_name: false
  179.             styles:
  180.               card:
  181.                 - width: 65px
  182.                 - height: 65px
  183.                 - margin: 0
  184.                 - padding: 0
  185.                 - border: none
  186.                 - box-shadow: none
  187.                 - background-color: "#4b5975"
  188.                 - border-top-left-radius: 22px
  189.                 - border-bottom-left-radius: 22px
  190.                 - border-top-right-radius: 0px
  191.                 - border-bottom-right-radius: 0px
  192.               icon:
  193.                 - background-color: transparent
  194.                 - color: white
  195.                 - width: 32px
  196.                 - height: 32px
  197.         ok:
  198.           card:
  199.             type: custom:button-card
  200.             icon: mdi:checkbox-blank-circle-outline
  201.             show_name: false
  202.             tap_action:
  203.               action: call-service
  204.               service: script.send_samsung_ok
  205.             styles:
  206.               card:
  207.                 - width: 65px
  208.                 - height: 65px
  209.                 - margin: 0
  210.                 - padding: 0
  211.                 - border: none
  212.                 - box-shadow: none
  213.                 - background-color: "#4b5975"
  214.                 - border-radius: 0px
  215.               icon:
  216.                 - background-color: transparent
  217.                 - color: white
  218.                 - width: 32px
  219.                 - height: 32px
  220.         right:
  221.           card:
  222.             type: custom:button-card
  223.             icon: mdi:chevron-right
  224.             show_name: false
  225.             tap_action:
  226.               action: call-service
  227.               service: script.send_samsung_right
  228.             styles:
  229.               card:
  230.                 - width: 65px
  231.                 - height: 65px
  232.                 - margin: 0
  233.                 - padding: 0
  234.                 - border: none
  235.                 - box-shadow: none
  236.                 - background-color: "#4b5975"
  237.                 - border-top-right-radius: 22px
  238.                 - border-bottom-right-radius: 22px
  239.                 - border-top-left-radius: 0px
  240.                 - border-bottom-left-radius: 0px
  241.               icon:
  242.                 - background-color: transparent
  243.                 - color: white
  244.                 - width: 32px
  245.                 - height: 32px
  246.         down:
  247.           card:
  248.             type: custom:button-card
  249.             icon: mdi:chevron-down
  250.             show_name: false
  251.             tap_action:
  252.               action: call-service
  253.               service: script.send_samsung_down
  254.             styles:
  255.               card:
  256.                 - width: 65px
  257.                 - height: 65px
  258.                 - margin: 0
  259.                 - padding: 0
  260.                 - border: none
  261.                 - box-shadow: none
  262.                 - background-color: "#4b5975"
  263.                 - border-bottom-left-radius: 22px
  264.                 - border-bottom-right-radius: 22px
  265.                 - border-top-left-radius: 0px
  266.                 - border-top-right-radius: 0px
  267.               icon:
  268.                 - background-color: transparent
  269.                 - color: white
  270.                 - width: 32px
  271.                 - height: 32px
  272.   volstack:
  273.     card:
  274.       type: custom:button-card
  275.       styles:
  276.         grid:
  277.           - grid-template-areas: "\"volup\" \"mute\" \"voldown\""
  278.           - grid-template-rows: 65px 65px 65px
  279.           - row-gap: 0px
  280.         card:
  281.           - background: transparent
  282.           - padding: 0
  283.           - margin: 0
  284.           - border: none
  285.       custom_fields:
  286.         volup:
  287.           card:
  288.             type: custom:button-card
  289.             icon: mdi:volume-plus
  290.             show_name: false
  291.             tap_action:
  292.               action: call-service
  293.               service: script.send_samsung_volup
  294.             styles:
  295.               card:
  296.                 - width: 62px
  297.                 - height: 62px
  298.                 - background-color: "#4b5975"
  299.                 - border-top-left-radius: 22px
  300.                 - border-top-right-radius: 22px
  301.                 - border-bottom-left-radius: 0px
  302.                 - border-bottom-right-radius: 0px
  303.                 - border: none
  304.                 - box-shadow: none
  305.                 - padding: 0
  306.                 - margin: 0
  307.               icon:
  308.                 - color: white
  309.                 - background-color: transparent
  310.                 - width: 32px
  311.                 - height: 32px
  312.         mute:
  313.           card:
  314.             type: custom:button-card
  315.             icon: mdi:volume-off
  316.             show_name: false
  317.             tap_action:
  318.               action: call-service
  319.               service: script.send_samsung_volmute
  320.             styles:
  321.               card:
  322.                 - width: 62px
  323.                 - height: 68px
  324.                 - background-color: "#4b5975"
  325.                 - border-radius: 0px
  326.                 - border: none
  327.                 - box-shadow: none
  328.                 - padding: 0
  329.                 - margin: 0
  330.               icon:
  331.                 - color: white
  332.                 - background-color: transparent
  333.                 - width: 32px
  334.                 - height: 32px
  335.         voldown:
  336.           card:
  337.             type: custom:button-card
  338.             icon: mdi:volume-minus
  339.             show_name: false
  340.             tap_action:
  341.               action: call-service
  342.               service: script.send_samsung_voldown
  343.             styles:
  344.               card:
  345.                 - width: 62px
  346.                 - height: 62px
  347.                 - background-color: "#4b5975"
  348.                 - border-bottom-left-radius: 22px
  349.                 - border-bottom-right-radius: 22px
  350.                 - border-top-left-radius: 0px
  351.                 - border-top-right-radius: 0px
  352.                 - border: none
  353.                 - box-shadow: none
  354.                 - padding: 0
  355.                 - margin: 0
  356.               icon:
  357.                 - color: white
  358.                 - background-color: transparent
  359.                 - width: 32px
  360.                 - height: 32px
  361.   chanstk:
  362.     card:
  363.       type: custom:button-card
  364.       styles:
  365.         grid:
  366.           - grid-template-areas: "\"channelup\" \"guide\" \"channeldown\""
  367.           - grid-template-rows: 65px 65px 65px
  368.           - row-gap: 0px
  369.         card:
  370.           - background: transparent
  371.           - padding: 0
  372.           - margin: 0
  373.           - border: none
  374.       custom_fields:
  375.         channelup:
  376.           card:
  377.             type: custom:button-card
  378.             icon: mdi:chevron-up
  379.             show_name: false
  380.             tap_action:
  381.               action: call-service
  382.               service: script.send_samsung_chanup
  383.             styles:
  384.               card:
  385.                 - width: 62px
  386.                 - height: 62px
  387.                 - background-color: "#4b5975"
  388.                 - border-top-left-radius: 22px
  389.                 - border-top-right-radius: 22px
  390.                 - border-bottom-left-radius: 0px
  391.                 - border-bottom-right-radius: 0px
  392.                 - border: none
  393.                 - box-shadow: none
  394.                 - padding: 0
  395.                 - margin: 0
  396.               icon:
  397.                 - color: white
  398.                 - background-color: transparent
  399.                 - width: 32px
  400.                 - height: 32px
  401.         guide:
  402.           card:
  403.             type: custom:button-card
  404.             icon: mdi:television-guide
  405.             show_name: false
  406.             tap_action:
  407.               action: call-service
  408.               service: script.send_samsung_guide
  409.             styles:
  410.               card:
  411.                 - width: 62px
  412.                 - height: 68px
  413.                 - background-color: "#4b5975"
  414.                 - border-radius: 0px
  415.                 - border: none
  416.                 - box-shadow: none
  417.                 - padding: 0
  418.                 - margin: 0
  419.               icon:
  420.                 - color: white
  421.                 - background-color: transparent
  422.                 - width: 32px
  423.                 - height: 32px
  424.         channeldown:
  425.           card:
  426.             type: custom:button-card
  427.             icon: mdi:chevron-down
  428.             show_name: false
  429.             tap_action:
  430.               action: call-service
  431.               service: script.send_samsung_chandown
  432.             styles:
  433.               card:
  434.                 - width: 62px
  435.                 - height: 62px
  436.                 - background-color: "#4b5975"
  437.                 - border-bottom-left-radius: 22px
  438.                 - border-bottom-right-radius: 22px
  439.                 - border-top-left-radius: 0px
  440.                 - border-top-right-radius: 0px
  441.                 - border: none
  442.                 - box-shadow: none
  443.                 - padding: 0
  444.                 - margin: 0
  445.               icon:
  446.                 - color: white
  447.                 - background-color: transparent
  448.                 - width: 32px
  449.                 - height: 32px
  450.   power:
  451.     card:
  452.       type: custom:button-card
  453.       icon: mdi:power
  454.       show_name: false
  455.       tap_action:
  456.         action: call-service
  457.         service: script.send_samsung_power
  458.       styles:
  459.         card:
  460.           - width: 62px
  461.           - height: 62px
  462.           - background-color: "#4b5975"
  463.           - border: none
  464.           - margin: 0
  465.           - border-radius: 22px
  466.         icon:
  467.           - width: 32px
  468.           - height: 32px
  469.           - color: white
  470.           - background-color: transparent
  471.           - padding: 6px
  472.   blank:
  473.  ### Work in Progress
  474.     card:
  475.       type: custom:button-card
  476.       icon: mdi:plex
  477.       show_name: false
  478.       styles:
  479.         card:
  480.           - width: 62px
  481.           - height: 62px
  482.           - background-color: "#4b5975"
  483.           - border: none
  484.           - margin: 0
  485.           - border-radius: 22px
  486.         icon:
  487.           - width: 32px
  488.           - height: 32px
  489.           - color: white
  490.           - background-color: transparent
  491.           - padding: 6px
  492.   source:
  493.     card:
  494.       type: custom:button-card
  495.       icon: mdi:video-input-hdmi
  496.       show_name: false
  497.       tap_action:
  498.         action: call-service
  499.         service: script.send_samsung_source
  500.       styles:
  501.         card:
  502.           - width: 62px
  503.           - height: 62px
  504.           - background-color: "#4b5975"
  505.           - border: none
  506.           - margin: 0
  507.           - border-radius: 22px
  508.         icon:
  509.           - width: 32px
  510.           - height: 32px
  511.           - color: white
  512.           - background-color: transparent
  513.           - padding: 6px
  514.   channelnumber:
  515.     card:
  516.       type: custom:button-card
  517.       icon: mdi:numeric
  518.       show_name: false
  519.       styles:
  520.         card:
  521.           - height: 61.992px
  522.           - margin: 0
  523.           - padding: 0
  524.           - background-color: "#4b5975"
  525.           - border-radius: 22px
  526.           - border: none
  527.           - box-shadow: none
  528.         icon:
  529.           - background-color: transparent
  530.           - color: white
  531.           - width: 32px
  532.           - height: 32px
  533.   rewind:
  534.     card:
  535.       type: custom:button-card
  536.       icon: mdi:rewind
  537.       show_name: false
  538.       tap_action:
  539.         action: call-service
  540.         service: script.send_samsung_rewind
  541.       styles:
  542.         card:
  543.           - width: 62px
  544.           - height: 62px
  545.           - background-color: "#4b5975"
  546.           - border: none
  547.           - margin: 0
  548.           - border-radius: 22px
  549.         icon:
  550.           - width: 32px
  551.           - height: 32px
  552.           - color: white
  553.           - background-color: transparent
  554.           - padding: 6px
  555.   play:
  556.     card:
  557.       type: custom:button-card
  558.       icon: mdi:play
  559.       show_name: false
  560.       tap_action:
  561.         action: call-service
  562.         service: script.send_samsung_play
  563.       styles:
  564.         card:
  565.           - width: 62px
  566.           - height: 62px
  567.           - background-color: "#4b5975"
  568.           - border: none
  569.           - margin: 0
  570.           - border-radius: 22px
  571.         icon:
  572.           - width: 32px
  573.           - height: 32px
  574.           - color: white
  575.           - background-color: transparent
  576.           - padding: 6px
  577.   pause:
  578.     card:
  579.       type: custom:button-card
  580.       icon: mdi:pause
  581.       show_name: false
  582.       tap_action:
  583.         action: call-service
  584.         service: script.send_samsung_pause
  585.       styles:
  586.         card:
  587.           - width: 62px
  588.           - height: 62px
  589.           - background-color: "#4b5975"
  590.           - border: none
  591.           - margin: 0
  592.           - border-radius: 22px
  593.         icon:
  594.           - width: 32px
  595.           - height: 32px
  596.           - color: white
  597.           - background-color: transparent
  598.           - padding: 6px
  599.   stop:
  600.     card:
  601.       type: custom:button-card
  602.       icon: mdi:stop
  603.       show_name: false
  604.       tap_action:
  605.         action: call-service
  606.         service: script.send_samsung_stop
  607.       styles:
  608.         card:
  609.           - width: 62px
  610.           - height: 62px
  611.           - background-color: "#4b5975"
  612.           - border: none
  613.           - margin: 0
  614.           - border-radius: 22px
  615.         icon:
  616.           - width: 32px
  617.           - height: 32px
  618.           - color: white
  619.           - background-color: transparent
  620.           - padding: 6px
  621.   forward:
  622.     card:
  623.       type: custom:button-card
  624.       icon: mdi:fast-forward
  625.       show_name: false
  626.       tap_action:
  627.         action: call-service
  628.         service: script.send_samsung_forward
  629.       styles:
  630.         card:
  631.           - width: 62px
  632.           - height: 62px
  633.           - background-color: "#4b5975"
  634.           - border: none
  635.           - margin: 0
  636.           - border-radius: 22px
  637.         icon:
  638.           - width: 32px
  639.           - height: 32px
  640.           - color: white
  641.           - background-color: transparent
  642.           - padding: 6px
  643.  
Advertisement
Add Comment
Please, Sign In to add comment