Guest User

Untitled

a guest
Jul 29th, 2024
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 6.85 KB | None | 0 0
  1. type: horizontal-stack
  2. cards:
  3.   - type: custom:stack-in-card
  4.     cards:
  5.       - type: custom:mushroom-template-card
  6.         primary: Kies hier je standaard zender
  7.         icon: mdi:music
  8.         entity: media_player.ruimte1
  9.         fill_container: true
  10.         layout: horizontal
  11.         multiline_secondary: false
  12.         card_mod:
  13.           style:
  14.             mushroom-state-info$: |
  15.              .container {
  16.                 margin: 10px;
  17.               }
  18.             mushroom-shape-icon$: |
  19.              .shape {
  20.               margin-top: 0px;
  21.               }
  22.             .: |
  23.              ha-card {
  24.                 height: 55px !important;
  25.                 box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.3) !important;
  26.                 background-color: rgba({{ states("input_text.kleur_iconen")}},0.2) !important;
  27.                       }
  28.       - type: horizontal-stack
  29.         cards:
  30.           - type: custom:mushroom-template-card
  31.             primary: >-
  32.               {{ states('input_text.persoon1_radiostations').split(',')[0]
  33.               |default('') | title}}
  34.             tap_action:
  35.               action: call-service
  36.               service: script.audio_optielijst
  37.               service_data:
  38.                 option: ruimte1.1
  39.             icon: >
  40.              {% set s =
  41.               states('input_text.persoon1_radiostations').split(',')[0] %}
  42.  
  43.               {% if s is defined and s != '' %}
  44.                 mdi:volume-high
  45.               {% else %}
  46.                 mdi:volume-off
  47.               {% endif %}
  48.             icon_color: >
  49.              {% set s =
  50.               states('input_text.persoon1_radiostations').split(',')[0] %}
  51.  
  52.               {% if s is defined and s != '' %}
  53.                 {{ states("input_text.kleur_iconen")}}
  54.               {% else %}
  55.                 grey
  56.               {% endif %}
  57.             card_mod:
  58.               style:
  59.                 mushroom-shape-icon$: |
  60.                  .shape {
  61.                     box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  62.                   }
  63.                 .: |
  64.                  ha-card:active {
  65.                   transform: scale(1.02);
  66.                   transition: 0s;
  67.                     }
  68.                   ha-card {
  69.                     height: 50px !important;
  70.                           }
  71.           - type: custom:mushroom-template-card
  72.             primary: >-
  73.               {{ states('input_text.persoon1_radiostations').split(',')[1]
  74.               |default('') | title}}
  75.             icon: >
  76.              {% set s =
  77.               states('input_text.persoon1_radiostations').split(',')[1] %}
  78.  
  79.               {% if s is defined and s != '' %}
  80.                 mdi:volume-high
  81.               {% else %}
  82.                 mdi:volume-off
  83.               {% endif %}
  84.             icon_color: >
  85.              {% set s =
  86.               states('input_text.persoon1_radiostations').split(',')[1] %}
  87.  
  88.               {% if s is defined and s != '' %}
  89.                 {{ states("input_text.kleur_iconen")}}
  90.               {% else %}
  91.                 grey
  92.               {% endif %}                          
  93.             tap_action:
  94.               action: call-service
  95.               service: script.audio_optielijst
  96.               service_data:
  97.                 option: ruimte1.2
  98.             card_mod:
  99.               style:
  100.                 mushroom-shape-icon$: |
  101.                  .shape {
  102.                     box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  103.                   }
  104.                 .: |
  105.                  ha-card:active {
  106.                   transform: scale(1.02);
  107.                   transition: 0s;
  108.                     }
  109.                   ha-card {
  110.                     height: 50px !important;
  111.                           }
  112.       - type: horizontal-stack
  113.         cards:
  114.           - type: custom:mushroom-template-card
  115.             primary: >-
  116.               {{ states('input_text.persoon1_radiostations').split(',')[2]
  117.               |default('') | title }}
  118.             icon: >
  119.              {% set s =
  120.               states('input_text.persoon1_radiostations').split(',')[2] %}
  121.  
  122.               {% if s is defined and s != '' %}  
  123.                 mdi:volume-high
  124.               {% else %}
  125.                 mdi:volume-off
  126.               {% endif %}
  127.             icon_color: >
  128.              {% set s =
  129.               states('input_text.persoon1_radiostations').split(',')[2] %}
  130.  
  131.               {% if s is defined and s != '' %}  
  132.                 {{ states("input_text.kleur_iconen")}}
  133.               {% else %}
  134.                 grey
  135.               {% endif %}                          
  136.             tap_action:
  137.               action: call-service
  138.               service: script.audio_optielijst
  139.               service_data:
  140.                 option: ruimte1.3
  141.             card_mod:
  142.               style:
  143.                 mushroom-shape-icon$: |
  144.                  .shape {
  145.                     box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  146.                   }
  147.                 .: |
  148.                  ha-card:active {
  149.                   transform: scale(1.02);
  150.                   transition: 0s;
  151.                     }
  152.                   ha-card {
  153.                     height: 55px !important;
  154.                           }
  155.           - type: custom:mushroom-template-card
  156.             primary: >-
  157.               {{ states('input_text.persoon1_radiostations').split(',')[3]
  158.               |default('') | title}}
  159.             icon: >
  160.              {% set s =
  161.               states('input_text.persoon1_radiostations').split(',')[3] %}
  162.  
  163.               {% if s is defined and s != '' %}
  164.                 mdi:volume-high
  165.               {% else %}
  166.                 mdi:volume-off
  167.               {% endif %}
  168.             icon_color: >
  169.              {% set s =
  170.               states('input_text.persoon1_radiostations').split(',')[3] %}
  171.  
  172.               {% if s is defined and s != '' %}
  173.                 {{ states("input_text.kleur_iconen")}}
  174.               {% else %}
  175.                 grey
  176.               {% endif %}
  177.             tap_action:
  178.               action: call-service
  179.               service: script.audio_optielijst
  180.               service_data:
  181.                 option: ruimte1.4
  182.             card_mod:
  183.               style:
  184.                 mushroom-shape-icon$: |
  185.                  .shape {
  186.                     box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  187.                   }
  188.                 .: |
  189.                  ha-card:active {
  190.                   transform: scale(1.02);
  191.                   transition: 0s;
  192.                     }
  193.                   ha-card {
  194.                     height: 55px !important;
  195.                           }
  196.       - type: custom:button-card
  197.         name: ''
  198.         styles:
  199.           card:
  200.             - height: 1px
  201.     card_mod:
  202.       style: |
  203.        ha-card {
  204.           width: 98%;
  205.           height: 98%;
  206.         }    
  207.  
Advertisement
Add Comment
Please, Sign In to add comment