Guest User

Untitled

a guest
Oct 23rd, 2023
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 7.92 KB | Source Code | 0 0
  1. type: vertical-stack
  2. cards:
  3.   - type: custom:mushroom-title-card
  4.     title: TV Control
  5.     alignment: center
  6.     subtitle: ''
  7.   - type: horizontal-stack
  8.     cards:
  9.       - type: custom:mushroom-chips-card
  10.         chips:
  11.           - type: template
  12.             tap_action:
  13.               action: call-service
  14.               service: remote.send_command
  15.               target:
  16.                 device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  17.               data:
  18.                 device: television
  19.                 command:
  20.                  - POWER_OFF
  21.                   - POWER_ON
  22.             icon: mdi:power
  23.             icon_color: primary
  24.             content: Power
  25.           - type: spacer
  26.           - type: action
  27.             icon: mdi:volume-mute
  28.             icon_color: red
  29.             tap_action:
  30.               action: call-service
  31.               service: remote.send_command
  32.               target:
  33.                 device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  34.               data:
  35.                 hold_secs: 0
  36.                 device: television
  37.                 command: MUTE
  38.           - type: action
  39.             icon: mdi:volume-medium
  40.             tap_action:
  41.               action: call-service
  42.               service: remote.send_command
  43.               target:
  44.                 device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  45.               data:
  46.                 device: television
  47.                 command: VOLUME_DOWN
  48.                 hold_secs: 0
  49.           - type: action
  50.             icon: mdi:volume-high
  51.             tap_action:
  52.               action: call-service
  53.               service: remote.send_command
  54.               target:
  55.                 device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  56.               data:
  57.                 device: television
  58.                 command: VOLUME_UP
  59.         alignment: center
  60.   - type: custom:android-tv-card
  61.     remote_id: remote.the_tv
  62.     media_player_id: media_player.the_tv
  63.     rows:
  64.      - - navigation_touchpad
  65.     custom_sources:
  66.       syncler:
  67.         icon: mdi:movie-open
  68.         color: red
  69.         service: remote.turn_on
  70.         target:
  71.           entity_id: remote.the_tv
  72.         data:
  73.           activity: syncler-cmdlet://
  74.     card_mod:
  75.       style: |
  76.        toucharea {
  77.          /* background-image: [too big] */
  78.           background-size: 30% !important;
  79.           background-repeat: no-repeat !important;
  80.           background-position: center !important;
  81.           background-image-opacity: .1 !important;
  82.           opacity: .25;
  83.           margin: 15px 15px;
  84.         }
  85.   - type: horizontal-stack
  86.     cards:
  87.       - type: custom:mushroom-entity-card
  88.         entity: remote.the_tv
  89.         icon: mdi:backburger
  90.         fill_container: false
  91.         secondary_info: none
  92.         name: Back
  93.         tap_action:
  94.           action: call-service
  95.           service: remote.send_command
  96.           target:
  97.             device_id: 2fa67f4eb66801c73eb501103bf1fce3
  98.           data:
  99.             hold_secs: 0
  100.             command: BACK
  101.         icon_color: grey
  102.       - type: custom:mushroom-entity-card
  103.         entity: remote.the_tv
  104.         icon: mdi:home
  105.         tap_action:
  106.           action: call-service
  107.           service: remote.send_command
  108.           target:
  109.             device_id: 2fa67f4eb66801c73eb501103bf1fce3
  110.           data:
  111.             command: HOME
  112.         secondary_info: none
  113.         fill_container: false
  114.         name: Home
  115.   - type: horizontal-stack
  116.     cards:
  117.       - type: horizontal-stack
  118.         cards:
  119.           - show_name: false
  120.             show_icon: true
  121.             type: button
  122.             tap_action:
  123.               action: call-service
  124.               service: remote.turn_on
  125.               target:
  126.                 entity_id: remote.the_tv
  127.               data:
  128.                 activity: syncler-cmdlet://
  129.             icon_height: 30px
  130.             icon: mdi:netflix
  131.             card_mod:
  132.               style: |
  133.                ha-card {
  134.                   --card-mod-icon-color: rgb(160, 9, 0);
  135.                 }
  136.           - show_name: false
  137.             show_icon: true
  138.             type: button
  139.             tap_action:
  140.               action: call-service
  141.               service: remote.turn_on
  142.               target:
  143.                 entity_id: remote.the_tv
  144.               data:
  145.                 activity: vnd.youtube://
  146.             icon_height: 30px
  147.             icon: mdi:youtube
  148.             name: YouTube
  149.             card_mod:
  150.               style: |
  151.                ha-card {
  152.                       --card-mod-icon-color: rgb(180, 30, 30);
  153.                 }
  154.       - type: custom:mushroom-entity-card
  155.         entity: script.screen_toggle
  156.         name: Screen
  157.         icon: mdi:projector-screen-variant-outline
  158.         icon_color: grey
  159.         tap_action:
  160.           action: call-service
  161.           service: script.screen_toggle
  162.           target: {}
  163.         fill_container: false
  164.         secondary_info: none
  165.   - type: custom:mushroom-chips-card
  166.     chips:
  167.       - type: action
  168.         icon: mdi:menu
  169.         tap_action:
  170.           action: call-service
  171.           service: remote.send_command
  172.           target:
  173.             device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  174.           data:
  175.             command: MENU
  176.             device: television
  177.       - type: action
  178.         icon: mdi:check
  179.         icon_color: primary
  180.         tap_action:
  181.           action: call-service
  182.           service: remote.send_command
  183.           target:
  184.             device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  185.           data:
  186.             command: OK
  187.             device: television
  188.       - type: action
  189.         icon: mdi:close
  190.         icon_color: red
  191.         tap_action:
  192.           action: call-service
  193.           service: remote.send_command
  194.           target:
  195.             device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  196.           data:
  197.             command: BACK
  198.             device: television
  199.       - type: action
  200.         icon: mdi:gamepad-circle-right
  201.         tap_action:
  202.           action: call-service
  203.           service: remote.send_command
  204.           target:
  205.             device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  206.           data:
  207.             command: RIGHT
  208.             device: television
  209.         hold_action:
  210.           action: call-service
  211.           service: remote.send_command
  212.           target:
  213.             device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  214.           data:
  215.             device: television
  216.             command: LEFT
  217.       - type: action
  218.         icon: mdi:gamepad-circle-down
  219.         tap_action:
  220.           action: call-service
  221.           service: remote.send_command
  222.           target:
  223.             device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  224.           data:
  225.             command: DOWN
  226.             device: television
  227.         hold_action:
  228.           action: call-service
  229.           service: remote.send_command
  230.           target:
  231.             device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  232.           data:
  233.             num_repeats: 1
  234.             delay_secs: 0.4
  235.             hold_secs: 0
  236.             device: television
  237.             command: UP
  238.       - type: action
  239.         icon: mdi:upload-multiple
  240.         tap_action:
  241.           action: call-service
  242.           service: remote.send_command
  243.           target:
  244.             device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  245.           data:
  246.             device: television
  247.             command:
  248.              - SOURCE
  249.               - UP
  250.               - OK
  251.       - type: action
  252.         icon: mdi:download-multiple
  253.         tap_action:
  254.           action: call-service
  255.           service: remote.send_command
  256.           target:
  257.             device_id: 2c8ecd335aada58e4d80209e5c71b5b4
  258.           data:
  259.             device: television
  260.             command:
  261.              - SOURCE
  262.               - DOWN
  263.               - OK
  264.       - type: light
  265.         entity: light.small_light_2
  266.         tap_action:
  267.           action: toggle
  268.         use_light_color: true
  269.         content_info: name
  270.     alignment: center
  271. view_layout:
  272.   grid-area: main
  273.  
Advertisement
Add Comment
Please, Sign In to add comment