Guest User

Untitled

a guest
Jul 29th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 13.70 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 je 4 favoriete zenders
  7.         icon: mdi:music
  8.         fill_container: true
  9.         layout: horizontal
  10.         multiline_secondary: false
  11.         card_mod:
  12.           style:
  13.             mushroom-state-info$: |
  14.              .container {
  15.                 margin: 10px;
  16.               }
  17.             mushroom-shape-icon$: |
  18.              .shape {
  19.               margin-top: 0px;
  20.               }
  21.             .: |
  22.              ha-card {
  23.                 height: 55px !important;
  24.                 box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.3) !important;
  25.                 background-color: rgba({{ states("input_text.kleur_iconen")}},0.2) !important;
  26.                       }
  27.       - type: vertical-stack
  28.         cards:
  29.           - type: horizontal-stack
  30.             cards:
  31.               - type: custom:mushroom-template-card
  32.                 primary: Radio 1
  33.                 icon: >
  34.                  {% if 'Radio 1' in
  35.                   states('input_text.persoon1_radiostations').split(',') %}
  36.                   mdi:toggle-switch {% else %} mdi:toggle-switch-off  {% endif
  37.                   %}
  38.                 icon_color: >
  39.                  {% if 'Radio 1' in
  40.                   states('input_text.persoon1_radiostations').split(',') %}
  41.                     {{ states("input_text.kleur_iconen")}}
  42.                   {% else %}
  43.                     [84, 84, 84]
  44.                   {% endif %}
  45.                 tap_action:
  46.                   action: call-service
  47.                   service: script.add_remove_option_duplicate
  48.                   service_data:
  49.                     option: Radio 1
  50.                     person: persoon1
  51.                 option: ruimte1.4
  52.                 card_mod:
  53.                   style:
  54.                     mushroom-shape-icon$: |
  55.                      .shape {
  56.                         box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  57.                       }
  58.                     .: |
  59.                      ha-card:active {
  60.                       transform: scale(1.02);
  61.                       transition: 0s;
  62.                         }
  63.                       ha-card {
  64.                         height: 50px !important;
  65.                               }
  66.                 fill_container: true
  67.                 layout: horizontal
  68.                 multiline_secondary: false
  69.               - type: custom:mushroom-template-card
  70.                 primary: Radio 2
  71.                 icon: >
  72.                  {% if 'Radio 2' in
  73.                   states('input_text.persoon1_radiostations').split(',') %}
  74.                   mdi:toggle-switch {% else %} mdi:toggle-switch-off  {% endif
  75.                   %}
  76.                 icon_color: >
  77.                  {% if 'Radio 2' in
  78.                   states('input_text.persoon1_radiostations').split(',') %}
  79.                     {{ states("input_text.kleur_iconen")}}
  80.                   {% else %}
  81.                     [84, 84, 84]
  82.                   {% endif %}
  83.                 tap_action:
  84.                   action: call-service
  85.                   service: script.add_remove_option_duplicate
  86.                   service_data:
  87.                     option: Radio 2
  88.                     person: persoon1
  89.                 fill_container: true
  90.                 layout: horizontal
  91.                 multiline_secondary: false
  92.                 card_mod:
  93.                   style:
  94.                     mushroom-shape-icon$: |
  95.                      .shape {
  96.                         box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  97.                       }
  98.                     .: |
  99.                      ha-card:active {
  100.                       transform: scale(1.02);
  101.                       transition: 0s;
  102.                         }
  103.                       ha-card {
  104.                         height: 50px !important;
  105.                               }    
  106.           - type: horizontal-stack
  107.             cards:
  108.               - type: custom:mushroom-template-card
  109.                 primary: Radio Willy
  110.                 icon: >
  111.                  {% if 'Radio Willy' in
  112.                   states('input_text.persoon1_radiostations').split(',') %}
  113.                   mdi:toggle-switch {% else %} mdi:toggle-switch-off  {% endif
  114.                   %}
  115.                 icon_color: >
  116.                  {% if 'Radio Willy' in
  117.                   states('input_text.persoon1_radiostations').split(',') %}
  118.                     {{ states("input_text.kleur_iconen")}}
  119.                   {% else %}
  120.                     [84, 84, 84]
  121.                   {% endif %}
  122.                 tap_action:
  123.                   action: call-service
  124.                   service: script.add_remove_option_duplicate
  125.                   service_data:
  126.                     option: Radio Willy
  127.                     person: persoon1
  128.                 fill_container: true
  129.                 layout: horizontal
  130.                 multiline_secondary: false
  131.                 card_mod:
  132.                   style:
  133.                     mushroom-shape-icon$: |
  134.                      .shape {
  135.                         box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  136.                       }
  137.                     .: |
  138.                      ha-card:active {
  139.                       transform: scale(1.02);
  140.                       transition: 0s;
  141.                         }
  142.                       ha-card {
  143.                         height: 50px !important;
  144.                               }                                                                                                          
  145.               - type: custom:mushroom-template-card
  146.                 primary: Stu Bru
  147.                 icon: >
  148.                  {% if 'Stu Bru' in
  149.                   states('input_text.persoon1_radiostations').split(',') %}
  150.                   mdi:toggle-switch {% else %} mdi:toggle-switch-off  {% endif
  151.                   %}
  152.                 icon_color: >
  153.                  {% if 'Stu Bru' in
  154.                   states('input_text.persoon1_radiostations').split(',') %}
  155.                     {{ states("input_text.kleur_iconen")}}
  156.                   {% else %}
  157.                     [84, 84, 84]
  158.                   {% endif %}
  159.                 tap_action:
  160.                   action: call-service
  161.                   service: script.add_remove_option_duplicate
  162.                   service_data:
  163.                     option: Stu Bru
  164.                     person: persoon1
  165.                 fill_container: true
  166.                 layout: horizontal
  167.                 multiline_secondary: false
  168.                 card_mod:
  169.                   style:
  170.                     mushroom-shape-icon$: |
  171.                      .shape {
  172.                         box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  173.                       }
  174.                     .: |
  175.                      ha-card:active {
  176.                       transform: scale(1.02);
  177.                       transition: 0s;
  178.                         }
  179.                       ha-card {
  180.                         height: 50px !important;
  181.                               }                                      
  182.           - type: horizontal-stack
  183.             cards:
  184.               - type: custom:mushroom-template-card
  185.                 primary: Spotify Easy
  186.                 icon: >
  187.                  {% if 'Spotify Easy' in
  188.                   states('input_text.persoon1_radiostations').split(',') %}
  189.                   mdi:toggle-switch {% else %} mdi:toggle-switch-off  {% endif
  190.                   %}
  191.                 icon_color: >
  192.                  {% if 'Spotify Easy' in
  193.                   states('input_text.persoon1_radiostations').split(',') %}
  194.                     {{ states("input_text.kleur_iconen")}}
  195.                   {% else %}
  196.                     [84, 84, 84]
  197.                   {% endif %}
  198.                 tap_action:
  199.                   action: call-service
  200.                   service: script.add_remove_option_duplicate
  201.                   service_data:
  202.                     option: Spotify Easy
  203.                     person: persoon1
  204.                 fill_container: true
  205.                 layout: horizontal
  206.                 multiline_secondary: false
  207.                 card_mod:
  208.                   style:
  209.                     mushroom-shape-icon$: |
  210.                      .shape {
  211.                         box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  212.                       }
  213.                     .: |
  214.                      ha-card:active {
  215.                       transform: scale(1.02);
  216.                       transition: 0s;
  217.                         }
  218.                       ha-card {
  219.                         height: 50px !important;
  220.                               }                                        
  221.               - type: custom:mushroom-template-card
  222.                 primary: Top Radio
  223.                 icon: >
  224.                  {% if 'Top Radio' in
  225.                   states('input_text.persoon1_radiostations').split(',') %}
  226.                   mdi:toggle-switch {% else %} mdi:toggle-switch-off  {% endif
  227.                   %}
  228.                 icon_color: >
  229.                  {% if 'Top Radio' in
  230.                   states('input_text.persoon1_radiostations').split(',') %}
  231.                     {{ states("input_text.kleur_iconen")}}
  232.                   {% else %}
  233.                     [84, 84, 84]
  234.                   {% endif %}
  235.                 tap_action:
  236.                   action: call-service
  237.                   service: script.add_remove_option_duplicate
  238.                   service_data:
  239.                     option: Top Radio
  240.                     person: persoon1
  241.                 fill_container: true
  242.                 layout: horizontal
  243.                 multiline_secondary: false
  244.                 card_mod:
  245.                   style:
  246.                     mushroom-shape-icon$: |
  247.                      .shape {
  248.                         box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  249.                       }
  250.                     .: |
  251.                      ha-card:active {
  252.                       transform: scale(1.02);
  253.                       transition: 0s;
  254.                         }
  255.                       ha-card {
  256.                         height: 50px !important;
  257.                               }                                                                                                                                                                                                  
  258.           - type: horizontal-stack
  259.             cards:
  260.               - type: custom:mushroom-template-card
  261.                 primary: Spotify Dance
  262.                 icon: >
  263.                  {% if 'Spotify Dance' in
  264.                   states('input_text.persoon1_radiostations').split(',') %}
  265.                   mdi:toggle-switch {% else %} mdi:toggle-switch-off  {% endif
  266.                   %}
  267.                 icon_color: >
  268.                  {% if 'Spotify Dance' in
  269.                   states('input_text.persoon1_radiostations').split(',') %}
  270.                     {{ states("input_text.kleur_iconen")}}
  271.                   {% else %}
  272.                     [84, 84, 84]
  273.                   {% endif %}
  274.                 tap_action:
  275.                   action: call-service
  276.                   service: script.add_remove_option_duplicate
  277.                   service_data:
  278.                     option: Spotify Dance
  279.                     person: persoon1
  280.                 fill_container: true
  281.                 layout: horizontal
  282.                 multiline_secondary: false
  283.                 card_mod:
  284.                   style:
  285.                     mushroom-shape-icon$: |
  286.                      .shape {
  287.                         box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  288.                       }
  289.                     .: |
  290.                      ha-card:active {
  291.                       transform: scale(1.02);
  292.                       transition: 0s;
  293.                         }
  294.                       ha-card {
  295.                         height: 55px !important;
  296.                               }                                            
  297.               - type: custom:mushroom-template-card
  298.                 primary: Spotify Pop
  299.                 icon: >
  300.                  {% if 'Spotify Pop' in
  301.                   states('input_text.persoon1_radiostations').split(',') %}
  302.                   mdi:toggle-switch {% else %} mdi:toggle-switch-off  {% endif
  303.                   %}
  304.                 icon_color: >
  305.                  {% if 'Spotify Pop' in
  306.                   states('input_text.persoon1_radiostations').split(',') %}
  307.                     {{ states("input_text.kleur_iconen")}}
  308.                   {% else %}
  309.                     [84, 84, 84]
  310.                   {% endif %}
  311.                 tap_action:
  312.                   action: call-service
  313.                   service: script.add_remove_option_duplicate
  314.                   service_data:
  315.                     option: Spotify Pop
  316.                     person: persoon1
  317.                 fill_container: true
  318.                 layout: horizontal
  319.                 multiline_secondary: false
  320.                 card_mod:
  321.                   style:
  322.                     mushroom-shape-icon$: |
  323.                      .shape {
  324.                         box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
  325.                       }
  326.                     .: |
  327.                      ha-card:active {
  328.                       transform: scale(1.02);
  329.                       transition: 0s;
  330.                         }
  331.                       ha-card {
  332.                         height: 55px !important;
  333.                               }  
  334.           - type: custom:button-card
  335.             name: ''
  336.             styles:
  337.               card:
  338.                 - height: 1px
  339.     card_mod:
  340.       style: |
  341.        ha-card {
  342.           width: 98%;
  343.         }    
  344.  
Advertisement
Add Comment
Please, Sign In to add comment