Guest User

Untitled

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