Advertisement
DevilingMaster

home-assistant-logitech-z906-remote

Sep 23rd, 2023 (edited)
1,109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 6.21 KB | None | 0 0
  1. type: custom:hui-element
  2. card_type: custom:mod-card
  3. style: |
  4.  ha-card {
  5.     background-color:#050505;
  6.     padding: 40px;
  7.     border-radius:40px;
  8.     }
  9. card:
  10.   type: vertical-stack
  11.   cards:
  12.     - type: horizontal-stack
  13.       cards:
  14.         - type: custom:button-card
  15.           color_type: blank-card
  16.         - type: custom:button-card
  17.           color_type: blank-card
  18.           styles:
  19.             card:
  20.               - height: 20px
  21.         - type: custom:button-card
  22.           color_type: blank-card
  23.     - type: horizontal-stack
  24.       cards:
  25.         - type: custom:button-card
  26.           color_type: card
  27.           tap_action:
  28.             action: call-service
  29.             service: remote.send_command
  30.             service_data:
  31.               entity_id: remote.broadlink_rm_mini_3_nicola
  32.               device: logitech_z906
  33.               command: power
  34.           icon: mdi:power
  35.           color: rgb(75, 75, 77)
  36.           styles:
  37.             card:
  38.               - height: 100px
  39.               - border-radius: 50px
  40.         - type: custom:button-card
  41.           color_type: card
  42.           tap_action:
  43.             action: call-service
  44.             service: remote.send_command
  45.             service_data:
  46.               entity_id: remote.broadlink_rm_mini_3_nicola
  47.               device: logitech_z906
  48.               command: input
  49.           name: INPUT
  50.           show_name: true
  51.           show_icon: false
  52.           color: rgb(75, 75, 77)
  53.           styles:
  54.             card:
  55.               - height: 100px
  56.               - border-radius: 50px
  57.         - type: custom:button-card
  58.           color_type: card
  59.           tap_action:
  60.             action: call-service
  61.             service: remote.send_command
  62.             service_data:
  63.               entity_id: remote.broadlink_rm_mini_3_nicola
  64.               device: logitech_z906
  65.               command: mute
  66.           name: MUTE
  67.           show_name: true
  68.           show_icon: false
  69.           color: rgb(75, 75, 77)
  70.           styles:
  71.             card:
  72.               - height: 100px
  73.               - border-radius: 50px
  74.     - type: horizontal-stack
  75.       cards:
  76.         - type: custom:button-card
  77.           color_type: blank-card
  78.         - type: custom:button-card
  79.           color_type: blank-card
  80.           styles:
  81.             card:
  82.               - height: 50px
  83.         - type: custom:button-card
  84.           color_type: blank-card
  85.     - type: horizontal-stack
  86.       cards:
  87.         - type: custom:button-card
  88.           color_type: blank-card
  89.         - type: custom:button-card
  90.           color_type: card
  91.           tap_action:
  92.             action: call-service
  93.             service: remote.send_command
  94.             service_data:
  95.               entity_id: remote.broadlink_rm_mini_3_nicola
  96.               device: logitech_z906
  97.               command: level
  98.           name: LEVEL
  99.           show_name: true
  100.           show_icon: false
  101.           color: rgb(75, 75, 77)
  102.           styles:
  103.             card:
  104.               - height: 75px
  105.         - type: custom:button-card
  106.           color_type: blank-card
  107.     - type: horizontal-stack
  108.       cards:
  109.         - type: custom:button-card
  110.           color_type: card
  111.           tap_action:
  112.             action: call-service
  113.             service: remote.send_command
  114.             service_data:
  115.               entity_id: remote.broadlink_rm_mini_3_nicola
  116.               device: logitech_z906
  117.               command: minus
  118.           hold_action:
  119.             action: call-service
  120.             service: remote.send_command
  121.             service_data:
  122.               entity_id: remote.broadlink_rm_mini_3_nicola
  123.               device: logitech_z906
  124.               command: minus
  125.               num_repeats: 5
  126.               delay_secs: 0.05
  127.           icon: mdi:minus
  128.           show_name: false
  129.           show_icon: true
  130.           color: rgb(75, 75, 77)
  131.           styles:
  132.             card:
  133.               - height: 75px
  134.         - type: custom:button-card
  135.           color_type: blank-card
  136.         - type: custom:button-card
  137.           color_type: card
  138.           tap_action:
  139.             action: call-service
  140.             service: remote.send_command
  141.             service_data:
  142.               entity_id: remote.broadlink_rm_mini_3_nicola
  143.               device: logitech_z906
  144.               command: plus
  145.           hold_action:
  146.             action: call-service
  147.             service: remote.send_command
  148.             service_data:
  149.               entity_id: remote.broadlink_rm_mini_3_nicola
  150.               device: logitech_z906
  151.               command: plus
  152.               num_repeats: 5
  153.               delay_secs: 0.05
  154.           icon: mdi:plus
  155.           show_name: false
  156.           show_icon: true
  157.           color: rgb(75, 75, 77)
  158.           styles:
  159.             card:
  160.               - height: 75px
  161.     - type: horizontal-stack
  162.       cards:
  163.         - type: custom:button-card
  164.           color_type: blank-card
  165.         - type: custom:button-card
  166.           color_type: card
  167.           tap_action:
  168.             action: call-service
  169.             service: remote.send_command
  170.             service_data:
  171.               entity_id: remote.broadlink_rm_mini_3_nicola
  172.               device: logitech_z906
  173.               command: effect
  174.           name: EFFECT
  175.           show_name: true
  176.           show_icon: false
  177.           color: rgb(75, 75, 77)
  178.           styles:
  179.             card:
  180.               - height: 75px
  181.         - type: custom:button-card
  182.           color_type: blank-card
  183.     - type: horizontal-stack
  184.       cards:
  185.         - type: custom:button-card
  186.           color_type: blank-card
  187.         - type: custom:button-card
  188.           color_type: blank-card
  189.           styles:
  190.             card:
  191.               - height: 50px
  192.         - type: custom:button-card
  193.           color_type: blank-card
  194.     - type: picture
  195.       image: /local/Logitech_logo.svg.png
  196.       card_mod:
  197.         style: |
  198.          ha-card {
  199.             background: none;
  200.           }
  201.     - type: horizontal-stack
  202.       cards:
  203.         - type: custom:button-card
  204.           color_type: blank-card
  205.         - type: custom:button-card
  206.           color_type: blank-card
  207.           styles:
  208.             card:
  209.               - height: 20px
  210.         - type: custom:button-card
  211.           color_type: blank-card
  212.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement