Advertisement
Albometer

New Dashboard UI - 10"

Dec 28th, 2021
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 116.32 KB | None | 0 0
  1. kiosk_mode: null
  2. styles:
  3.   grid:
  4.     - grid-template-areas: |
  5.        "icon  circle"
  6.         "n     n"
  7.         "s     s"
  8.     - grid-template-columns: repeat(2, 1fr)
  9.     - grid-template-rows: auto repeat(2, min-content)
  10.     - gap: 2%
  11.     - align-items: start
  12.   name:
  13.     - justify-self: start
  14.     - line-height: 115%
  15.   state:
  16.     - justify-self: start
  17.     - line-height: 115%
  18.   card:
  19.     - font-family: Sf Display
  20.     - border-radius: var(--custom-button-card-border-radius)
  21.     - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  22.     - transition: none
  23.     - padding: 10%
  24.     - '--mdc-ripple-color': |
  25.        [[[
  26.           return variables.consider_on ?
  27.             'rgb(0, 0, 0)' :
  28.             'rgba(255, 255, 255, 0.3)';
  29.         ]]]
  30.     - color: |
  31.        [[[
  32.           return variables.consider_on ?
  33.             'rgba(0, 0, 0, 0.6)' :
  34.             'rgba(255, 255, 255, 0.3)';
  35.         ]]]
  36.     - background-color: |
  37.        [[[
  38.           return variables.consider_on ?
  39.             'rgba(255, 255, 255, 0.8)' :
  40.             'rgba(115, 115, 115, 0.2)';
  41.         ]]]
  42. extra_styles: |
  43.  [[[
  44.     if (entity) {
  45.       let hs = entity.attributes.hs_color == undefined,
  46.         h = hs || entity.attributes.hs_color[0],
  47.         s = hs || entity.attributes.hs_color[1],
  48.         l_min = 28,
  49.         l_max = 48,
  50.         l_calc =
  51.          entity.attributes.brightness / 2.54 * (l_max - l_min) / 100 + l_min;
  52.      var light_color =
  53.        entity.attributes.color_mode === 'color_temp'
  54.          ? `hsl(204, 58%, ${l_calc}%);`
  55.          : `hsl(${h}, ${s}%, ${l_calc}%);`;
  56.     }
  57.    return `
  58.       svg {
  59.        --light-color:
  60.         ${ variables.state === 'on' && entity.attributes.brightness != undefined
  61.            ? light_color
  62.            : variables.state === 'on' && entity.attributes.brightness == undefined
  63.            ? 'var(--state-icon-active-color);'
  64.            : 'var(--state-icon-color);'
  65.        }
  66.      }
  67.      #container {
  68.       text-align: left !important;
  69.      }
  70.       #name, #state {
  71.         font-size: 1.34vw;
  72.         letter-spacing: 0.05vw;
  73.      }
  74.      /* portrait */
  75.       @media screen and (max-width: 1200px) {
  76.        #name, #state {
  77.          font-size: 2vw;
  78.          letter-spacing: 0.05vw;
  79.       }
  80.      }
  81.      /* phone */
  82.       @media screen and (max-width: 800px) {
  83.        #name, #state {
  84.          font-size: 3.1vw;
  85.          letter-spacing: 0.12vw;
  86.        }
  87.           }
  88.       @keyframes card_bounce {
  89.         0% {
  90.           transform: scale(1);
  91.         }
  92.         15% {
  93.           transform: scale(0.9);
  94.         }
  95.         25% {
  96.           transform: scale(1);
  97.         }
  98.         30% {
  99.           transform: scale(0.98);
  100.         }
  101.         100% {
  102.           transform: scale(1);
  103.         }
  104.       }
  105.     `
  106.   ]]]
  107. views:
  108.   - type: custom:grid-layout
  109.     path: 0
  110.     layout:
  111.       grid-gap: var(--custom-layout-card-padding)
  112.       grid-template-columns: repeat(4, 1fr) 0
  113.       grid-template-rows: 0 repeat(2, fit-content(100%)) 0fr
  114.       grid-template-areas: |
  115.        "sidebar  .           .           .       ."
  116.         "sidebar  esszimmer   wohnzimmer  aussen  ."
  117.         "sidebar  media       heizung     familie ."
  118.         "sidebar  footer      footer      footer  ."
  119.       mediaquery:
  120.         '(max-width: 800px)':
  121.           grid-gap: calc(var(--custom-layout-card-padding) * 1.7)
  122.           grid-template-columns: 0 repeat(2, 1fr) 0
  123.           grid-template-rows: 0 repeat(5, fit-content(100%)) 0fr
  124.           grid-template-areas: |
  125.            ".  .           .            ."
  126.             ".  sidebar     sidebar      ."
  127.             ".  esszimmer   wohnzimmer   ."
  128.             ".  aussen      heizung      ."
  129.             ".  media       familie      ."
  130.             ".  footer      footer       ."
  131.             ".  .           .            ."
  132.         '(max-width: 1200px)':
  133.           grid-gap: var(--custom-layout-card-padding)
  134.           grid-template-columns: repeat(3, 1fr) 0
  135.           grid-template-rows: 0 repeat(3, fit-content(100%)) 0fr
  136.           grid-template-areas: |
  137.            "sidebar  .           .           ."
  138.             "sidebar  esszimmer   wohnzimmer  ."
  139.             "sidebar  aussen      heizung     ."
  140.             "sidebar  media       familie     ."
  141.             "sidebar  footer      footer      ."
  142.             "sidebar  .           .           ."
  143.     badges: []
  144.     cards:
  145.       - type: grid
  146.         title:
  147.         cards:
  148.           - type: custom:simple-clock-card
  149.             use_military: true
  150.             hide_seconds: true
  151.             font_size: 6rem
  152.             padding_size: 1px
  153.             style: |
  154.              ha-card {
  155.                 height: 18px;
  156.                 box-shadow: none;
  157.                 background: transparent;
  158.                 font-family: SF Display;
  159.                 font-size: 25px;
  160.                 line-height: 15px;
  161.                 font-weight: 300;
  162.                 letter-spacing: 0.06vw;
  163.                 color: #6a7377;
  164.               }
  165.               :host {
  166.                 --mini-media-player-accent-color: white;
  167.               }
  168.             square: false
  169.             columns: 1
  170.           - type: markdown
  171.             style: |
  172.              ha-card {
  173.                  background-color: rgba(0,0,0,0) !important;
  174.                  box-shadow: none;
  175.                  padding-right: 10px;
  176.                  font-family: SF Display;
  177.                  font-size: 15px;
  178.                  line-height: var(--sidebar-line-height);
  179.                  font-weight: 10;
  180.                  letter-spacing: 0.06vw;
  181.                  color: #6a7377;
  182.             content: |-
  183.               <center>
  184.              <h3>
  185.              {{ now().strftime('%d.%m.%Y') }}
  186.               </h3>
  187.              </center>
  188.           - type: custom:weather-card
  189.             entity: weather.dark_sky
  190.             current: true
  191.             details: false
  192.             forecast: false
  193.             tap_action:
  194.               action: none
  195.             style: |
  196.              ha-card {
  197.               background-color:transparent;
  198.               box-shadow: none;
  199.               font-size: 0.65vw!important;
  200.               font-family: SF Display;
  201.               line-height: var(--sidebar-line-height);
  202.               font-weight: 10;
  203.               letter-spacing: 0.06vw;
  204.               color: #6a7377!important;
  205.               }
  206.             number_of_forecasts: '5'
  207.           - type: markdown
  208.             style: |
  209.              ha-card {
  210.                  background-color: rgba(0,0,0,0) !important;
  211.                  box-shadow: none;
  212.                  padding-right: 10px;
  213.                  font-family: SF Display;
  214.                  font-size: 15px;
  215.                  line-height: 13px;
  216.                  font-weight: 20;
  217.                  letter-spacing: 0.05vw!important;
  218.                  color: #6a7377;
  219.             content: >-
  220.               <h4>
  221.               {{states.sensor.open_windows.state}}
  222.  
  223.  
  224.               {{states.sensor.open_doors.state}}
  225.  
  226.  
  227.               </h4>
  228.               <h4><br>
  229.               {{ states.sensor.abfallnaechster.attributes.values() | first |
  230.               replace("papier","Papiermüll") | replace("bio","Biomüll") |
  231.  
  232.               replace("gelbersack", "Gelber Sack") | replace("rest", "Restmüll")
  233.               |
  234.               replace("papier","Papiermüll") }}
  235.               </h4>
  236.               <h4>
  237.               {{ states.sensor.abfallnaechster.attributes | first |
  238.                 as_timestamp | timestamp_custom("%d.%m.%Y") }}
  239.               <h4><br>
  240.               Spritpreis
  241.               </h4>
  242.               <h4>
  243.               {{states.sensor.tankerkoenig_star_tankstelle_e5.state}}
  244.           - type: custom:mini-media-player
  245.             padding-size: 80px
  246.             entity: media_player.wohnzimmer_2_2
  247.             style: |
  248.              ha-card {
  249.                 background-color:transparent;
  250.                 box-shadow: none;
  251.                 font-size: 0.85vw!important;
  252.               }
  253.             toggle_power: false
  254.             volume_stateless: false
  255.             group: true
  256.             source: icon
  257.             sound_mode: icon
  258.             replace_mute: stop
  259.             name: Sonos
  260.             icon: mdi:music-circle-outline
  261.             hide:
  262.               volume: true
  263.               source: true
  264.               controls: true
  265.               power: true
  266.             info: scroll
  267.             artwork: none
  268.         square: false
  269.         columns: 1
  270.         view_layout:
  271.           grid-area: sidebar
  272.       - type: grid
  273.         cards:
  274.           - type: custom:button-card
  275.             entity: light.cabinettw_z3_01
  276.             aspect_ratio: 1
  277.             name: Küche
  278.             color_type: card
  279.             show_state: true
  280.             hold_action:
  281.               action: fire-dom-event
  282.               browser_mod:
  283.                 command: popup
  284.                 title: Küche
  285.                 hide_header: false
  286.                 style:
  287.                   hui-light-popup-card:
  288.                     $hui-light-entity-card$: |
  289.                      #states {
  290.                         padding-top: 0.5em;
  291.                         padding-bottom: 1.2em;
  292.                         borderRadius: 1.7em;
  293.                       }
  294.                 card:
  295.                   type: custom:light-popup-card
  296.                   fullscreen: false
  297.                   entity: light.cabinettw_z3_01
  298.                   icon: none
  299.                   displayType: slider
  300.                   sliderColoredByLight: true
  301.                   actionsInARow: 2
  302.                   offStates: null
  303.                   brightnessWidth: 130px
  304.                   brightnessHeight: 320px
  305.                   borderRadius: 1.7em
  306.                   sliderColor: '#c7c7c7'
  307.                   sliderTrackColor: rgba(25, 25, 25, 0.9)
  308.                   actions:
  309.                     - action: fire-dom-event
  310.                       color: '#FDCA64'
  311.                       name: Farbe
  312.                       browser_mod:
  313.                         command: popup
  314.                         title: Farbe
  315.                         card:
  316.                           type: custom:light-entity-card
  317.                           entity: light.cabinettw_z3_01
  318.                           hide_header: true
  319.                           brightness: true
  320.                           color_temp: true
  321.                           white_value: true
  322.             custom_fields:
  323.               Circle: >
  324.                [[[ {
  325.  
  326.                 const temp = Math.round(entity.attributes.brightness / 2.64);
  327.  
  328.                 const radius = 20.5;
  329.  
  330.                 const circumference = radius * 2 * Math.PI;
  331.  
  332.                 return `<svg viewBox="0 0 50 50"><style>circle { transform:
  333.                 rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray:
  334.                 ${circumference};stroke-dashoffset: ${circumference - temp / 100
  335.                 * circumference};}
  336.  
  337.                 tspan {font-size: 10px;}</style> <circle cx="25" cy="25"
  338.                 r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08"
  339.                 style="
  340.  
  341.                 transform: rotate(-90deg); transform-origin: 50% 50%;" />
  342.  
  343.                 <text x="50%" y="54%" fill="#8d8e90" font-size="11"
  344.                 text-anchor="middle" alignment-baseline="middle"
  345.                 dominant-baseline="middle">${temp}%</text></svg>`; } ]]]
  346.             show_entity_picture: true
  347.             styles:
  348.               card:
  349.                 - font-family: Sf Display
  350.                 - border-radius: var(--custom-button-card-border-radius)
  351.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  352.                 - transition: none
  353.                 - padding: 10%
  354.               grid:
  355.                 - grid-template-areas: '"i" "n" "s"'
  356.                 - grid-template-columns: 1fr
  357.                 - grid-template-rows: 1fr min-content min-content
  358.               name:
  359.                 - justify-self: start
  360.                 - padding-left: 7px
  361.                 - font-weight: bold
  362.                 - font-family: SF Display
  363.                 - font-size: 14px
  364.               img_cell:
  365.                 - justify-content: start
  366.                 - padding-left: 5px
  367.                 - padding-top: 10px
  368.                 - align-items: start
  369.                 - margin: none
  370.               state:
  371.                 - justify-self: start
  372.                 - font-color: red
  373.                 - padding-left: 7px
  374.                 - padding-bottom: 10px
  375.                 - text-transform: capitalize
  376.                 - font-family: SF Display
  377.                 - font-size: 10px
  378.               icon:
  379.                 - width: 40%
  380.               custom_fields:
  381.                 Circle:
  382.                   - align-self: start
  383.                   - position: absolute
  384.                   - left: 55%
  385.                   - top: 10%
  386.                   - width: 40%
  387.                   - font-size: 18px
  388.                   - font-weight: 900
  389.                   - font-family: SF Display
  390.                   - text-transform: capitalize
  391.             state:
  392.               - value: 'on'
  393.                 entity_picture: \local\img\icons8-kitchen-room-48.png
  394.                 color: rgba(255,255,255,0.9)
  395.               - value: 'off'
  396.                 entity_picture: \local\img\icons8-kitchen-room-48.png
  397.                 color: rgba(65,65,63,0.8)
  398.                 styles:
  399.                   card:
  400.                     - filter: opacity(50%)
  401.                   icon:
  402.                     - filter: grayscale(100%)
  403.           - type: custom:button-card
  404.             entity: light.wohnzimmer_2
  405.             aspect_ratio: 1
  406.             name: Tresen
  407.             color_type: card
  408.             show_state: true
  409.             show_entity_picture: true
  410.             styles:
  411.               card:
  412.                 - font-family: Sf Display
  413.                 - border-radius: var(--custom-button-card-border-radius)
  414.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  415.                 - transition: none
  416.                 - padding: 10%
  417.               grid:
  418.                 - grid-template-areas: '"i" "n" "s"'
  419.                 - grid-template-columns: 1fr
  420.                 - grid-template-rows: 1fr min-content min-content
  421.               name:
  422.                 - justify-self: start
  423.                 - padding-left: 7px
  424.                 - font-weight: bold
  425.                 - font-family: SF Display
  426.                 - font-size: 14px
  427.               img_cell:
  428.                 - justify-content: start
  429.                 - padding-left: 5px
  430.                 - padding-top: 10px
  431.                 - align-items: start
  432.                 - margin: none
  433.               state:
  434.                 - justify-self: start
  435.                 - font-color: red
  436.                 - padding-left: 7px
  437.                 - padding-bottom: 10px
  438.                 - text-transform: capitalize
  439.                 - font-family: SF Display
  440.                 - font-size: 10px
  441.               icon:
  442.                 - width: 40%
  443.               custom_fields:
  444.                 Circle:
  445.                   - align-self: start
  446.                   - position: absolute
  447.                   - left: 55%
  448.                   - top: 10%
  449.                   - width: 40%
  450.                   - font-size: 18px
  451.                   - font-weight: 900
  452.                   - font-family: SF Display
  453.                   - text-transform: capitalize
  454.             state:
  455.               - value: 'on'
  456.                 entity_picture: \local\img\icons8-cupboard-48.png
  457.                 color: rgba(255,255,255,0.9)
  458.               - value: 'off'
  459.                 entity_picture: \local\img\icons8-cupboard-48.png
  460.                 color: rgba(65,65,63,0.8)
  461.                 styles:
  462.                   card:
  463.                     - filter: opacity(50%)
  464.                   icon:
  465.                     - filter: grayscale(100%)
  466.           - type: custom:button-card
  467.             entity: light.esstisch
  468.             aspect_ratio: 1
  469.             name: Esstisch
  470.             color_type: card
  471.             show_state: true
  472.             hold_action:
  473.               action: fire-dom-event
  474.               browser_mod:
  475.                 command: popup
  476.                 title: Esstisch
  477.                 card:
  478.                   type: custom:light-popup-card
  479.                   fullscreen: false
  480.                   entity: light.esstisch
  481.                   icon: none
  482.                   displayType: slider
  483.                   sliderColoredByLight: true
  484.                   actionsInARow: 1
  485.                   brightnessWidth: 130px
  486.                   brightnessHeight: 360px
  487.                   borderRadius: 1.7em
  488.                   sliderColor: '#c7c7c7'
  489.                   sliderTrackColor: rgba(25, 25, 25, 0.9)
  490.                   actions:
  491.                     - action: fire-dom-event
  492.                       color: '#FDCA64'
  493.                       name: Farbe
  494.                       browser_mod:
  495.                         command: popup
  496.                         title: []
  497.                         card:
  498.                           type: custom:light-entity-card
  499.                           entity: light.esstisch
  500.                           hide_header: true
  501.                           brightness: true
  502.                           color_temp: true
  503.             custom_fields:
  504.               Circle: >
  505.                [[[ {
  506.  
  507.                 const temp = Math.round(entity.attributes.brightness / 2.64);
  508.  
  509.                 const radius = 20.5;
  510.  
  511.                 const circumference = radius * 2 * Math.PI;
  512.  
  513.                 return `<svg viewBox="0 0 50 50"><style>circle { transform:
  514.                 rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray:
  515.                 ${circumference};stroke-dashoffset: ${circumference - temp / 100
  516.                 * circumference};}
  517.  
  518.                 tspan {font-size: 10px;}</style> <circle cx="25" cy="25"
  519.                 r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08"
  520.                 style="
  521.  
  522.                 transform: rotate(-90deg); transform-origin: 50% 50%;" />
  523.  
  524.                 <text x="50%" y="54%" fill="#8d8e90" font-size="11"
  525.                 text-anchor="middle" alignment-baseline="middle"
  526.                 dominant-baseline="middle">${temp}%</text></svg>`; } ]]]
  527.             show_entity_picture: true
  528.             styles:
  529.               card:
  530.                 - font-family: Sf Display
  531.                 - border-radius: var(--custom-button-card-border-radius)
  532.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  533.                 - transition: none
  534.                 - padding: 10%
  535.               grid:
  536.                 - grid-template-areas: '"i" "n" "s"'
  537.                 - grid-template-columns: 1fr
  538.                 - grid-template-rows: 1fr min-content min-content
  539.               name:
  540.                 - justify-self: start
  541.                 - padding-left: 7px
  542.                 - font-weight: bold
  543.                 - font-family: SF Display
  544.                 - font-size: 14px
  545.               img_cell:
  546.                 - justify-content: start
  547.                 - padding-left: 5px
  548.                 - padding-top: 10px
  549.                 - align-items: start
  550.                 - margin: none
  551.               state:
  552.                 - justify-self: start
  553.                 - font-color: red
  554.                 - padding-left: 7px
  555.                 - padding-bottom: 10px
  556.                 - text-transform: capitalize
  557.                 - font-family: SF Display
  558.                 - font-size: 10px
  559.               icon:
  560.                 - width: 40%
  561.               custom_fields:
  562.                 Circle:
  563.                   - align-self: start
  564.                   - position: absolute
  565.                   - left: 55%
  566.                   - top: 10%
  567.                   - width: 40%
  568.                   - font-size: 18px
  569.                   - font-weight: 900
  570.                   - font-family: SF Display
  571.                   - text-transform: capitalize
  572.             state:
  573.               - value: 'on'
  574.                 entity_picture: \local\img\icons8-beleuchtung-50.png
  575.                 color: rgba(255,255,255,0.9)
  576.               - value: 'off'
  577.                 entity_picture: \local\img\icons8-beleuchtung-50.png
  578.                 color: rgba(65,65,63,0.8)
  579.                 styles:
  580.                   card:
  581.                     - filter: opacity(50%)
  582.                   icon:
  583.                     - filter: grayscale(100%)
  584.           - type: custom:button-card
  585.             entity: light.esszimmer_1
  586.             aspect_ratio: 1
  587.             name: Esszimmer
  588.             color_type: card
  589.             show_state: true
  590.             hold_action:
  591.               action: fire-dom-event
  592.               browser_mod:
  593.                 command: popup
  594.                 title: Esszimmer
  595.                 card:
  596.                   type: custom:light-popup-card
  597.                   fullscreen: false
  598.                   entity: light.esszimmer_1
  599.                   icon: none
  600.                   displayType: slider
  601.                   sliderColoredByLight: true
  602.                   actionsInARow: 1
  603.                   brightnessWidth: 100px
  604.                   brightnessHeight: 300px
  605.                   borderRadius: 1.7em
  606.                   sliderColor: '#c7c7c7'
  607.                   sliderTrackColor: rgba(25, 25, 25, 0.9)
  608.                   actions:
  609.                     - action: fire-dom-event
  610.                       color: '#FDCA64'
  611.                       name: Farbe
  612.                       browser_mod:
  613.                         command: popup
  614.                         title: []
  615.                         card:
  616.                           type: custom:light-entity-card
  617.                           entity:
  618.                            - light.esszimmer
  619.                           hide_header: true
  620.                           brightness: true
  621.                           color_temp: true
  622.                           style: |
  623.                            ha-card {
  624.                               box-shadow: none;
  625.                               background: transparent!important;
  626.                             }
  627.             custom_fields:
  628.               Circle: >
  629.                [[[ {
  630.  
  631.                 const temp = Math.round(entity.attributes.brightness / 2.64);
  632.  
  633.                 const radius = 20.5;
  634.  
  635.                 const circumference = radius * 2 * Math.PI;
  636.  
  637.                 return `<svg viewBox="0 0 50 50"><style>circle { transform:
  638.                 rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray:
  639.                 ${circumference};stroke-dashoffset: ${circumference - temp / 100
  640.                 * circumference};}
  641.  
  642.                 tspan {font-size: 10px;}</style> <circle cx="25" cy="25"
  643.                 r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08"
  644.                 style="
  645.  
  646.                 transform: rotate(-90deg); transform-origin: 50% 50%;" />
  647.  
  648.                 <text x="50%" y="54%" fill="#8d8e90" font-size="11"
  649.                 text-anchor="middle" alignment-baseline="middle"
  650.                 dominant-baseline="middle">${temp}%</text></svg>`; } ]]]
  651.             show_entity_picture: true
  652.             styles:
  653.               card:
  654.                 - font-family: Sf Display
  655.                 - border-radius: var(--custom-button-card-border-radius)
  656.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  657.                 - transition: none
  658.                 - padding: 10%
  659.               grid:
  660.                 - grid-template-areas: '"i" "n" "s"'
  661.                 - grid-template-columns: 1fr
  662.                 - grid-template-rows: 1fr min-content min-content
  663.               name:
  664.                 - justify-self: start
  665.                 - padding-left: 7px
  666.                 - font-weight: bold
  667.                 - font-family: SF Display
  668.                 - font-size: 14px
  669.               img_cell:
  670.                 - justify-content: start
  671.                 - padding-left: 5px
  672.                 - padding-top: 10px
  673.                 - align-items: start
  674.                 - margin: none
  675.               state:
  676.                 - justify-self: start
  677.                 - font-color: red
  678.                 - padding-left: 7px
  679.                 - padding-bottom: 10px
  680.                 - text-transform: capitalize
  681.                 - font-family: SF Display
  682.                 - font-size: 10px
  683.               icon:
  684.                 - width: 40%
  685.               custom_fields:
  686.                 Circle:
  687.                   - align-self: start
  688.                   - position: absolute
  689.                   - left: 55%
  690.                   - top: 10%
  691.                   - width: 40%
  692.                   - font-size: 18px
  693.                   - font-weight: 900
  694.                   - font-family: SF Display
  695.                   - text-transform: capitalize
  696.             state:
  697.               - value: 'on'
  698.                 entity_picture: \local\img\icons8-dining-room-48.png
  699.                 color: rgba(255,255,255,0.9)
  700.               - value: 'off'
  701.                 entity_picture: \local\img\icons8-dining-room-48.png
  702.                 color: rgba(65,65,63,0.8)
  703.                 styles:
  704.                   card:
  705.                     - filter: opacity(50%)
  706.                   icon:
  707.                     - filter: grayscale(100%)
  708.         title: Esszimmer
  709.         columns: 2
  710.         view_layout:
  711.           grid-area: esszimmer
  712.       - type: grid
  713.         cards:
  714.           - type: custom:button-card
  715.             entity: light.fernseher
  716.             aspect_ratio: 1
  717.             name: Fernseher
  718.             color_type: card
  719.             show_state: true
  720.             hold_action:
  721.               action: fire-dom-event
  722.               browser_mod:
  723.                 command: popup
  724.                 title: Esszimmer
  725.                 card:
  726.                   type: custom:light-popup-card
  727.                   fullscreen: false
  728.                   entity: light.fernseher
  729.                   icon: none
  730.                   displayType: slider
  731.                   sliderColoredByLight: true
  732.                   actionsInARow: 1
  733.                   offStates: null
  734.                   brightnessWidth: 130px
  735.                   brightnessHeight: 320px
  736.                   borderRadius: 1.7em
  737.                   sliderColor: '#c7c7c7'
  738.                   sliderTrackColor: rgba(25, 25, 25, 0.9)
  739.                   actions:
  740.                     - action: fire-dom-event
  741.                       color: '#FDCA64'
  742.                       name: Farbe
  743.                       browser_mod:
  744.                         command: popup
  745.                         title: []
  746.                         card:
  747.                           type: custom:light-entity-card
  748.                           entity:
  749.                            - light.fernseher
  750.                           hide_header: true
  751.                           brightness: true
  752.                           color_temp: true
  753.             custom_fields:
  754.               Circle: >
  755.                [[[ {
  756.  
  757.                 const temp = Math.round(entity.attributes.brightness / 2.64);
  758.  
  759.                 const radius = 20.5;
  760.  
  761.                 const circumference = radius * 2 * Math.PI;
  762.  
  763.                 return `<svg viewBox="0 0 50 50"><style>circle { transform:
  764.                 rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray:
  765.                 ${circumference};stroke-dashoffset: ${circumference - temp / 100
  766.                 * circumference};}
  767.  
  768.                 tspan {font-size: 10px;}</style> <circle cx="25" cy="25"
  769.                 r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08"
  770.                 style="
  771.  
  772.                 transform: rotate(-90deg); transform-origin: 50% 50%;" />
  773.  
  774.                 <text x="50%" y="54%" fill="#8d8e90" font-size="11"
  775.                 text-anchor="middle" alignment-baseline="middle"
  776.                 dominant-baseline="middle">${temp}%</text></svg>`; } ]]]
  777.             show_entity_picture: true
  778.             styles:
  779.               card:
  780.                 - font-family: Sf Display
  781.                 - border-radius: var(--custom-button-card-border-radius)
  782.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  783.                 - transition: none
  784.                 - padding: 10%
  785.               grid:
  786.                 - grid-template-areas: '"i" "n" "s"'
  787.                 - grid-template-columns: 1fr
  788.                 - grid-template-rows: 1fr min-content min-content
  789.               name:
  790.                 - justify-self: start
  791.                 - padding-left: 7px
  792.                 - font-weight: bold
  793.                 - font-family: SF Display
  794.                 - font-size: 14px
  795.               img_cell:
  796.                 - justify-content: start
  797.                 - padding-left: 5px
  798.                 - padding-top: 10px
  799.                 - align-items: start
  800.                 - margin: none
  801.               state:
  802.                 - justify-self: start
  803.                 - font-color: red
  804.                 - padding-left: 7px
  805.                 - padding-bottom: 10px
  806.                 - text-transform: capitalize
  807.                 - font-family: SF Display
  808.                 - font-size: 10px
  809.               icon:
  810.                 - width: 40%
  811.               custom_fields:
  812.                 Circle:
  813.                   - align-self: start
  814.                   - position: absolute
  815.                   - left: 55%
  816.                   - top: 10%
  817.                   - width: 40%
  818.                   - font-size: 18px
  819.                   - font-weight: 900
  820.                   - font-family: SF Display
  821.                   - text-transform: capitalize
  822.             state:
  823.               - value: 'on'
  824.                 entity_picture: \local\img\icons8-scoop-beleuchtung-48.png
  825.                 color: rgba(255,255,255,0.9)
  826.               - value: 'off'
  827.                 entity_picture: \local\img\icons8-scoop-beleuchtung-48.png
  828.                 color: rgba(65,65,63,0.8)
  829.                 styles:
  830.                   card:
  831.                     - filter: opacity(50%)
  832.                   icon:
  833.                     - filter: grayscale(100%)
  834.               - value: unavailable
  835.                 entity_picture: \local\img\icons8-achtung-48.png
  836.                 color: rgba(255,0,0,0.8)
  837.           - type: custom:button-card
  838.             entity: light.licht_vitrine
  839.             aspect_ratio: 1
  840.             name: Vitrine
  841.             color_type: card
  842.             show_state: true
  843.             hold_action:
  844.               action: fire-dom-event
  845.               browser_mod:
  846.                 command: popup
  847.                 title: Vitrine
  848.                 card:
  849.                   type: custom:light-popup-card
  850.                   fullscreen: false
  851.                   entity: light.licht_vitrine
  852.                   icon: none
  853.                   displayType: slider
  854.                   sliderColoredByLight: true
  855.                   actionsInARow: 1
  856.                   offStates: null
  857.                   brightnessWidth: 130px
  858.                   brightnessHeight: 320px
  859.                   borderRadius: 1.7em
  860.                   sliderColor: '#c7c7c7'
  861.                   sliderTrackColor: rgba(25, 25, 25, 0.9)
  862.                   actions:
  863.                     - action: fire-dom-event
  864.                       color: '#FDCA64'
  865.                       name: Farbe
  866.                       browser_mod:
  867.                         command: popup
  868.                         title: []
  869.                         card:
  870.                           type: custom:light-entity-card
  871.                           entity:
  872.                            - light.licht_vitrine
  873.                           hide_header: true
  874.                           brightness: true
  875.                           color_temp: true
  876.             custom_fields:
  877.               Circle: >
  878.                [[[ {
  879.  
  880.                 const temp = Math.round(entity.attributes.brightness / 2.64);
  881.  
  882.                 const radius = 20.5;
  883.  
  884.                 const circumference = radius * 2 * Math.PI;
  885.  
  886.                 return `<svg viewBox="0 0 50 50"><style>circle { transform:
  887.                 rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray:
  888.                 ${circumference};stroke-dashoffset: ${circumference - temp / 100
  889.                 * circumference};}
  890.  
  891.                 tspan {font-size: 10px;}</style> <circle cx="25" cy="25"
  892.                 r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08"
  893.                 style="
  894.  
  895.                 transform: rotate(-90deg); transform-origin: 50% 50%;" />
  896.  
  897.                 <text x="50%" y="54%" fill="#8d8e90" font-size="11"
  898.                 text-anchor="middle" alignment-baseline="middle"
  899.                 dominant-baseline="middle">${temp}%</text></svg>`; } ]]]
  900.             show_entity_picture: true
  901.             styles:
  902.               card:
  903.                 - font-family: Sf Display
  904.                 - border-radius: var(--custom-button-card-border-radius)
  905.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  906.                 - transition: none
  907.                 - padding: 10%
  908.               grid:
  909.                 - grid-template-areas: '"i" "n" "s"'
  910.                 - grid-template-columns: 1fr
  911.                 - grid-template-rows: 1fr min-content min-content
  912.               name:
  913.                 - justify-self: start
  914.                 - padding-left: 7px
  915.                 - font-weight: bold
  916.                 - font-family: SF Display
  917.                 - font-size: 14px
  918.               img_cell:
  919.                 - justify-content: start
  920.                 - padding-left: 5px
  921.                 - padding-top: 10px
  922.                 - align-items: start
  923.                 - margin: none
  924.               state:
  925.                 - justify-self: start
  926.                 - font-color: red
  927.                 - padding-left: 7px
  928.                 - padding-bottom: 10px
  929.                 - text-transform: capitalize
  930.                 - font-family: SF Display
  931.                 - font-size: 10px
  932.               icon:
  933.                 - width: 40%
  934.               custom_fields:
  935.                 Circle:
  936.                   - align-self: start
  937.                   - position: absolute
  938.                   - left: 55%
  939.                   - top: 10%
  940.                   - width: 40%
  941.                   - font-size: 18px
  942.                   - font-weight: 900
  943.                   - font-family: SF Display
  944.                   - text-transform: capitalize
  945.             state:
  946.               - value: 'on'
  947.                 entity_picture: \local\img\icons8-schrank-mit-schiebetür-48.png
  948.                 color: rgba(255,255,255,0.9)
  949.               - value: 'off'
  950.                 entity_picture: \local\img\icons8-schrank-mit-schiebetür-48.png
  951.                 color: rgba(65,65,63,0.8)
  952.                 styles:
  953.                   card:
  954.                     - filter: opacity(50%)
  955.                   icon:
  956.                     - filter: grayscale(100%)
  957.           - type: custom:button-card
  958.             entity: light.color_temperature_light_5
  959.             aspect_ratio: 1
  960.             name: Schrank
  961.             color_type: card
  962.             show_state: true
  963.             hold_action:
  964.               action: fire-dom-event
  965.               browser_mod:
  966.                 command: popup
  967.                 title: Esszimmer
  968.                 card:
  969.                   type: custom:light-popup-card
  970.                   fullscreen: false
  971.                   entity: light.color_temperature_light_5
  972.                   icon: none
  973.                   displayType: slider
  974.                   sliderColoredByLight: true
  975.                   actionsInARow: 1
  976.                   offStates: null
  977.                   brightnessWidth: 130px
  978.                   brightnessHeight: 320px
  979.                   borderRadius: 1.7em
  980.                   sliderColor: '#c7c7c7'
  981.                   sliderTrackColor: rgba(25, 25, 25, 0.9)
  982.                   actions:
  983.                     - action: fire-dom-event
  984.                       color: '#FDCA64'
  985.                       name: Farbe
  986.                       browser_mod:
  987.                         command: popup
  988.                         title: []
  989.                         card:
  990.                           type: custom:light-entity-card
  991.                           entity:
  992.                            - light.color_temperature_light_5
  993.                           hide_header: true
  994.                           brightness: true
  995.                           color_temp: true
  996.             custom_fields:
  997.               Circle: >
  998.                [[[ {
  999.  
  1000.                 const temp = Math.round(entity.attributes.brightness / 2.64);
  1001.  
  1002.                 const radius = 20.5;
  1003.  
  1004.                 const circumference = radius * 2 * Math.PI;
  1005.  
  1006.                 return `<svg viewBox="0 0 50 50"><style>circle { transform:
  1007.                 rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray:
  1008.                 ${circumference};stroke-dashoffset: ${circumference - temp / 100
  1009.                 * circumference};}
  1010.  
  1011.                 tspan {font-size: 10px;}</style> <circle cx="25" cy="25"
  1012.                 r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08"
  1013.                 style="
  1014.  
  1015.                 transform: rotate(-90deg); transform-origin: 50% 50%;" />
  1016.  
  1017.                 <text x="50%" y="54%" fill="#8d8e90" font-size="11"
  1018.                 text-anchor="middle" alignment-baseline="middle"
  1019.                 dominant-baseline="middle">${temp}%</text></svg>`; } ]]]
  1020.             show_entity_picture: true
  1021.             styles:
  1022.               card:
  1023.                 - font-family: Sf Display
  1024.                 - border-radius: var(--custom-button-card-border-radius)
  1025.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1026.                 - transition: none
  1027.                 - padding: 10%
  1028.               grid:
  1029.                 - grid-template-areas: '"i" "n" "s"'
  1030.                 - grid-template-columns: 1fr
  1031.                 - grid-template-rows: 1fr min-content min-content
  1032.               name:
  1033.                 - justify-self: start
  1034.                 - padding-left: 7px
  1035.                 - font-weight: bold
  1036.                 - font-family: SF Display
  1037.                 - font-size: 14px
  1038.               img_cell:
  1039.                 - justify-content: start
  1040.                 - padding-left: 5px
  1041.                 - padding-top: 10px
  1042.                 - align-items: start
  1043.                 - margin: none
  1044.               state:
  1045.                 - justify-self: start
  1046.                 - font-color: red
  1047.                 - padding-left: 7px
  1048.                 - padding-bottom: 10px
  1049.                 - text-transform: capitalize
  1050.                 - font-family: SF Display
  1051.                 - font-size: 10px
  1052.               icon:
  1053.                 - width: 40%
  1054.               custom_fields:
  1055.                 Circle:
  1056.                   - align-self: start
  1057.                   - position: absolute
  1058.                   - left: 55%
  1059.                   - top: 10%
  1060.                   - width: 40%
  1061.                   - font-size: 18px
  1062.                   - font-weight: 900
  1063.                   - font-family: SF Display
  1064.                   - text-transform: capitalize
  1065.             state:
  1066.               - value: 'on'
  1067.                 entity_picture: \local\img\icons8-lampe-48.png
  1068.                 color: rgba(255,255,255,0.9)
  1069.               - value: 'off'
  1070.                 entity_picture: \local\img\icons8-lampe-48.png
  1071.                 color: rgba(65,65,63,0.8)
  1072.                 styles:
  1073.                   card:
  1074.                     - filter: opacity(50%)
  1075.                   icon:
  1076.                     - filter: grayscale(100%)
  1077.           - type: custom:button-card
  1078.             entity: light.wohnzimmerschrank
  1079.             aspect_ratio: 1
  1080.             name: Tannenbaum
  1081.             color_type: card
  1082.             show_state: true
  1083.             show_entity_picture: true
  1084.             styles:
  1085.               card:
  1086.                 - font-family: Sf Display
  1087.                 - border-radius: var(--custom-button-card-border-radius)
  1088.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1089.                 - transition: none
  1090.                 - padding: 10%
  1091.               grid:
  1092.                 - grid-template-areas: '"i" "n" "s"'
  1093.                 - grid-template-columns: 1fr
  1094.                 - grid-template-rows: 1fr min-content min-content
  1095.               name:
  1096.                 - justify-self: start
  1097.                 - padding-left: 7px
  1098.                 - font-weight: bold
  1099.                 - font-family: SF Display
  1100.                 - font-size: 14px
  1101.               img_cell:
  1102.                 - justify-content: start
  1103.                 - padding-left: 5px
  1104.                 - padding-top: 10px
  1105.                 - align-items: start
  1106.                 - margin: none
  1107.               state:
  1108.                 - justify-self: start
  1109.                 - font-color: red
  1110.                 - padding-left: 7px
  1111.                 - padding-bottom: 10px
  1112.                 - text-transform: capitalize
  1113.                 - font-family: SF Display
  1114.                 - font-size: 10px
  1115.               icon:
  1116.                 - width: 40%
  1117.               custom_fields:
  1118.                 Geschirr:
  1119.                   - position: absolute
  1120.                   - left: 60%
  1121.                   - top: 10%
  1122.                   - width: 60%
  1123.             state:
  1124.               - value: 'on'
  1125.                 entity_picture: \local\img\icons8-weihnachtsbaum-48.png
  1126.                 color: rgba(255,255,255,0.9)
  1127.               - value: 'off'
  1128.                 entity_picture: \local\img\icons8-weihnachtsbaum-48.png
  1129.                 color: rgba(65,65,63,0.8)
  1130.                 styles:
  1131.                   card:
  1132.                     - filter: opacity(50%)
  1133.                   icon:
  1134.                     - filter: grayscale(100%)
  1135.         title: Wohnzimmer
  1136.         columns: 2
  1137.         view_layout:
  1138.           grid-area: wohnzimmer
  1139.       - type: grid
  1140.         cards:
  1141.           - type: custom:button-card
  1142.             entity: script.1634564870887
  1143.             aspect_ratio: 1
  1144.             name: Haustür öffnen
  1145.             color_type: card
  1146.             show_state: true
  1147.             show_entity_picture: true
  1148.             tap_action:
  1149.               action: call-service
  1150.               service: script.1634564870887
  1151.               confirmation:
  1152.                 text: Haustür öffnen ?
  1153.             styles:
  1154.               card:
  1155.                 - font-family: Sf Display
  1156.                 - border-radius: var(--custom-button-card-border-radius)
  1157.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1158.                 - transition: none
  1159.                 - padding: 10%
  1160.               grid:
  1161.                 - grid-template-areas: '"i" "n" "s"'
  1162.                 - grid-template-columns: 1fr
  1163.                 - grid-template-rows: 1fr min-content min-content
  1164.               name:
  1165.                 - justify-self: start
  1166.                 - padding-left: 7px
  1167.                 - font-weight: bold
  1168.                 - font-family: SF Display
  1169.                 - font-size: 14px
  1170.               img_cell:
  1171.                 - justify-content: start
  1172.                 - padding-left: 5px
  1173.                 - padding-top: 10px
  1174.                 - align-items: start
  1175.                 - margin: none
  1176.               state:
  1177.                 - justify-self: start
  1178.                 - font-color: red
  1179.                 - padding-left: 7px
  1180.                 - padding-bottom: 10px
  1181.                 - text-transform: capitalize
  1182.                 - font-family: SF Display
  1183.                 - font-size: 10px
  1184.               icon:
  1185.                 - width: 40%
  1186.             state:
  1187.               - value: 'on'
  1188.                 entity_picture: \local\img\icons8-schloss-orientierung-48.png
  1189.                 color: rgba(255,255,255,0.9)
  1190.               - value: 'off'
  1191.                 entity_picture: \local\img\icons8-schloss-orientierung-48.png
  1192.                 color: rgba(65,65,63,0.8)
  1193.                 styles:
  1194.                   card:
  1195.                     - filter: opacity(50%)
  1196.                   icon:
  1197.                     - filter: grayscale(100%)
  1198.           - type: custom:button-card
  1199.             entity: lock.haustur
  1200.             aspect_ratio: 1
  1201.             name: Haustür
  1202.             tap_action:
  1203.               action: toggle
  1204.             color_type: card
  1205.             show_state: true
  1206.             show_entity_picture: true
  1207.             styles:
  1208.               card:
  1209.                 - font-family: Sf Display
  1210.                 - border-radius: var(--custom-button-card-border-radius)
  1211.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1212.                 - transition: none
  1213.                 - padding: 10%
  1214.               grid:
  1215.                 - grid-template-areas: '"i" "n" "s"'
  1216.                 - grid-template-columns: 1fr
  1217.                 - grid-template-rows: 1fr min-content min-content
  1218.               name:
  1219.                 - justify-self: start
  1220.                 - padding-left: 7px
  1221.                 - font-weight: bold
  1222.                 - font-family: SF Display
  1223.                 - font-size: 14px
  1224.               img_cell:
  1225.                 - justify-content: start
  1226.                 - padding-left: 5px
  1227.                 - padding-top: 10px
  1228.                 - align-items: start
  1229.                 - margin: none
  1230.               state:
  1231.                 - justify-self: start
  1232.                 - font-color: red
  1233.                 - padding-left: 7px
  1234.                 - padding-bottom: 10px
  1235.                 - text-transform: capitalize
  1236.                 - font-family: SF Display
  1237.                 - font-size: 10px
  1238.               icon:
  1239.                 - width: 40%
  1240.             state:
  1241.               - value: locked
  1242.                 entity_picture: \local\img\icons8-sperren-48.png
  1243.                 color: rgba(255,255,255,0.9)
  1244.               - value: unlocked
  1245.                 entity_picture: \local\img\icons8-entsperren-48.png
  1246.                 color: rgba(65,65,63,0.8)
  1247.                 styles:
  1248.                   card:
  1249.                     - filter: opacity(50%)
  1250.                   icon:
  1251.                     - filter: grayscale(100%)
  1252.           - type: custom:button-card
  1253.             entity: camera.vorderseite
  1254.             camera_view: live
  1255.             aspect_ratio: 1
  1256.             name: Kamera
  1257.             color_type: card
  1258.             show_state: true
  1259.             tap_action:
  1260.               action: fire-dom-event
  1261.               browser_mod:
  1262.                 command: popup
  1263.                 title: Eingang
  1264.                 style:
  1265.                   hui-vertical-stack-card:
  1266.                     $hui-entities-card$: |
  1267.                      #states {
  1268.                         padding-top: 0.5em;
  1269.                         padding-bottom: 1.2em;
  1270.                       }
  1271.                 card:
  1272.                   type: vertical-stack
  1273.                   cards:
  1274.                     - type: picture-entity
  1275.                       entity: camera.vorderseite
  1276.                       camera_view: live
  1277.                     - type: entities
  1278.                       card_mod:
  1279.                         class: content
  1280.                       entities:
  1281.                         - entity: binary_sensor.presence_47
  1282.                           secondary_info: last-changed
  1283.                           name: Bewegung Eingang
  1284.                         - entity: sensor.carport_temperature_2
  1285.                           name: Temperatur
  1286.                     - type: custom:mini-graph-card
  1287.                       entities:
  1288.                         - entity: sensor.carport_temperature_2
  1289.                       line_width: 6
  1290.                       hour24: true
  1291.                       group: true
  1292.                       lign_icon: left
  1293.                       align_state: right
  1294.                       align_header: left
  1295.                       hours_to_show: 24
  1296.                       show:
  1297.                         fill: fade
  1298.                         icon: false
  1299.                         name: false
  1300.                         state: false
  1301.                         name_adaptive_color: false
  1302.                         labels: hover
  1303.                         legend: false
  1304.                       tap_action:
  1305.                         action: none
  1306.             show_entity_picture: true
  1307.             styles:
  1308.               card:
  1309.                 - font-family: Sf Display
  1310.                 - border-radius: var(--custom-button-card-border-radius)
  1311.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1312.                 - transition: none
  1313.                 - padding: 10%
  1314.               grid:
  1315.                 - grid-template-areas: '"i" "n" "s"'
  1316.                 - grid-template-columns: 1fr
  1317.                 - grid-template-rows: 1fr min-content min-content
  1318.               name:
  1319.                 - justify-self: start
  1320.                 - padding-left: 7px
  1321.                 - font-weight: bold
  1322.                 - font-family: SF Display
  1323.                 - font-size: 14px
  1324.               img_cell:
  1325.                 - justify-content: start
  1326.                 - padding-left: 5px
  1327.                 - padding-top: 10px
  1328.                 - align-items: start
  1329.                 - margin: none
  1330.               state:
  1331.                 - justify-self: start
  1332.                 - font-color: red
  1333.                 - padding-left: 7px
  1334.                 - padding-bottom: 10px
  1335.                 - text-transform: capitalize
  1336.                 - font-family: SF Display
  1337.                 - font-size: 10px
  1338.               icon:
  1339.                 - width: 40%
  1340.             state:
  1341.               - value: 'on'
  1342.                 entity_picture: \local\img\icons8-außenkamera-48.png
  1343.                 color: rgba(255,255,255,0.9)
  1344.               - value: idle
  1345.                 entity_picture: \local\img\icons8-außenkamera-48.png
  1346.                 color: rgba(65,65,63,0.8)
  1347.                 styles:
  1348.                   card:
  1349.                     - filter: opacity(50%)
  1350.                   icon:
  1351.                     - filter: grayscale(100%)
  1352.           - type: custom:button-card
  1353.             entity: alarm_control_panel.home
  1354.             aspect_ratio: 1
  1355.             show_title: false
  1356.             tap_action:
  1357.               action: fire-dom-event
  1358.               browser_mod:
  1359.                 command: popup
  1360.                 title: Alarm
  1361.                 style:
  1362.                   hui-vertical-stack-card: null
  1363.                   $hui-entities-card$: |
  1364.                    #states {
  1365.                       padding-top: 0.5em;
  1366.                       padding-bottom: 1.2em;
  1367.                     }
  1368.                 card:
  1369.                   type: vertical-stack
  1370.                   cards:
  1371.                     - type: custom:alarmo-card
  1372.                       entity: alarm_control_panel.home
  1373.                       keep_keypad_visible: true
  1374.             show_entity_picture: true
  1375.             color_type: card
  1376.             show_state: true
  1377.             styles:
  1378.               card:
  1379.                 - font-family: Sf Display
  1380.                 - border-radius: var(--custom-button-card-border-radius)
  1381.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1382.                 - transition: none
  1383.                 - padding: 10%
  1384.               grid:
  1385.                 - grid-template-areas: '"i" "n" "s"'
  1386.                 - grid-template-columns: 1fr
  1387.                 - grid-template-rows: 1fr min-content min-content
  1388.               name:
  1389.                 - justify-self: start
  1390.                 - padding-left: 7px
  1391.                 - font-weight: bold
  1392.                 - font-family: SF Display
  1393.                 - font-size: 14px
  1394.               img_cell:
  1395.                 - justify-content: start
  1396.                 - padding-left: 5px
  1397.                 - padding-top: 10px
  1398.                 - align-items: start
  1399.                 - margin: none
  1400.               state:
  1401.                 - justify-self: start
  1402.                 - font-color: red
  1403.                 - padding-left: 7px
  1404.                 - padding-bottom: 10px
  1405.                 - text-transform: capitalize
  1406.                 - font-family: SF Display
  1407.                 - font-size: 10px
  1408.               icon:
  1409.                 - width: 40%
  1410.             state:
  1411.               - value: armed_away
  1412.                 entity_picture: \local\img\icons8-gesichert-durch-alarmanlage-48.png
  1413.                 color: rgba(255,255,255,0.9)
  1414.               - value: armed_home
  1415.                 entity_picture: \local\img\icons8-gesichert-durch-alarmanlage-48.png
  1416.                 color: rgba(255,255,255,0.9)
  1417.               - value: pending
  1418.                 entity_picture: \local\img\icons8-gesichert-durch-alarmanlage-48.png
  1419.                 color: rgba(255,255,255,0.9)
  1420.               - value: triggered
  1421.                 entity_picture: \local\img\icons8-gesichert-durch-alarmanlage-48.png
  1422.                 color: rgba(255,255,255,0.9)
  1423.               - value: arming
  1424.                 entity_picture: \local\img\icons8-gesichert-durch-alarmanlage-48.png
  1425.               - value: disarmed
  1426.                 entity_picture: \local\img\icons8-gesichert-durch-alarmanlage-48.png
  1427.                 color: rgba(65,65,63,0.8)
  1428.                 styles:
  1429.                   card:
  1430.                     - filter: opacity(50%)
  1431.                   icon:
  1432.                     - filter: grayscale(100%)
  1433.         title: Aussenbereich
  1434.         columns: 2
  1435.         view_layout:
  1436.           grid-area: aussen
  1437.       - type: grid
  1438.         cards:
  1439.           - type: custom:button-card
  1440.             entity: media_player.wohnzimmer_2_2
  1441.             aspect_ratio: 1
  1442.             tap_action:
  1443.               action: fire-dom-event
  1444.               browser_mod:
  1445.                 command: popup
  1446.                 title: Sonos
  1447.                 card:
  1448.                   type: custom:media_player-popup-card
  1449.                   fullscreen: false
  1450.                   sliderWidth: 130px
  1451.                   sliderHeight: 320px
  1452.                   borderRadius: 1.7em
  1453.                   sliderColor: '#c7c7c7'
  1454.                   sliderTrackColor: rgba(25, 25, 25, 0.9)
  1455.                   entity: media_player.wohnzimmer_2_2
  1456.                   actions:
  1457.                     - service: media_player.media_previous_track
  1458.                       service_data:
  1459.                         entity_id: this
  1460.                       name: previous
  1461.                       icon: mdi:skip-previous
  1462.                     - service: media_player.media_play_pause
  1463.                       service_data:
  1464.                         entity_id: this
  1465.                       name: play/pause
  1466.                       icon: mdi:play-pause
  1467.                     - service: media_player.media_next_track
  1468.                       service_data:
  1469.                         entity_id: this
  1470.                       name: next
  1471.                       icon: mdi:skip-next
  1472.             name: Sonos
  1473.             color_type: card
  1474.             show_state: false
  1475.             show_entity_picture: true
  1476.             styles:
  1477.               card:
  1478.                 - font-family: Sf Display
  1479.                 - border-radius: var(--custom-button-card-border-radius)
  1480.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1481.                 - transition: none
  1482.                 - padding: 10%
  1483.               grid:
  1484.                 - grid-template-areas: '"i" "n" "s"'
  1485.                 - grid-template-columns: 1fr
  1486.                 - grid-template-rows: 1fr min-content min-content
  1487.               name:
  1488.                 - justify-self: start
  1489.                 - padding-left: 7px
  1490.                 - font-weight: bold
  1491.                 - padding-bottom: 25px
  1492.                 - font-family: SF Display
  1493.                 - font-size: 14px
  1494.               img_cell:
  1495.                 - justify-content: start
  1496.                 - padding-left: 5px
  1497.                 - padding-top: 10px
  1498.                 - align-items: start
  1499.                 - margin: none
  1500.               state:
  1501.                 - justify-self: start
  1502.                 - font-color: red
  1503.                 - padding-left: 7px
  1504.                 - padding-bottom: 10px
  1505.                 - text-transform: capitalize
  1506.                 - font-family: SF Display
  1507.                 - font-size: 10px
  1508.               icon:
  1509.                 - width: 40%
  1510.               custom_fields:
  1511.                 Playing:
  1512.                   - align-self: start
  1513.                   - position: absolute
  1514.                   - left: 55%
  1515.                   - top: 10%
  1516.                   - width: 40%
  1517.                   - font-size: 18px
  1518.                   - font-weight: 900
  1519.                   - font-family: SF Display
  1520.                   - text-transform: capitalize
  1521.             state:
  1522.               - value: playing
  1523.                 entity_picture: \local\img\icons8-sonos-speaker-50.png
  1524.                 color: rgba(255,255,255,0.9)
  1525.               - value: paused
  1526.                 entity_picture: \local\img\icons8-sonos-speaker-50.png
  1527.                 color: rgba(65,65,63,0.8)
  1528.                 styles:
  1529.                   card:
  1530.                     - filter: opacity(50%)
  1531.                   icon:
  1532.                     - filter: grayscale(100%)
  1533.           - type: custom:button-card
  1534.             entity: switch.xbox_one
  1535.             aspect_ratio: 1
  1536.             color_type: card
  1537.             show_state: true
  1538.             name: XBox
  1539.             show_title: false
  1540.             tap_action:
  1541.               action: toggle
  1542.             hold_action:
  1543.               action: fire-dom-event
  1544.               browser_mod:
  1545.                 command: popup
  1546.                 title: Xbox One
  1547.                 card:
  1548.                   type: custom:stack-in-card
  1549.                   cards:
  1550.                     - entity: media_player.xboxone
  1551.                       type: custom:mini-media-player
  1552.                       artwork: material
  1553.                       icon: mdi:microsoft-xbox-controller
  1554.                       name: Spiel
  1555.                       group: true
  1556.                       scale: 0.8
  1557.                       hide:
  1558.                         volume: true
  1559.                         controls: true
  1560.                         power: true
  1561.                         info: false
  1562.             show_entity_picture: true
  1563.             styles:
  1564.               card:
  1565.                 - font-family: Sf Display
  1566.                 - border-radius: var(--custom-button-card-border-radius)
  1567.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1568.                 - transition: none
  1569.                 - padding: 10%
  1570.               grid:
  1571.                 - grid-template-areas: '"i" "n" "s"'
  1572.                 - grid-template-columns: 1fr
  1573.                 - grid-template-rows: 1fr min-content min-content
  1574.               name:
  1575.                 - justify-self: start
  1576.                 - padding-left: 7px
  1577.                 - font-weight: bold
  1578.                 - font-family: SF Display
  1579.                 - font-size: 14px
  1580.               img_cell:
  1581.                 - justify-content: start
  1582.                 - padding-left: 5px
  1583.                 - padding-top: 10px
  1584.                 - align-items: start
  1585.                 - margin: none
  1586.               state:
  1587.                 - justify-self: start
  1588.                 - font-color: red
  1589.                 - padding-left: 7px
  1590.                 - padding-bottom: 10px
  1591.                 - text-transform: capitalize
  1592.                 - font-family: SF Display
  1593.                 - font-size: 10px
  1594.               icon:
  1595.                 - width: 40%
  1596.             state:
  1597.               - value: 'on'
  1598.                 color: rgba(255,255,255,0.9)
  1599.                 entity_picture: \local\img\icons8-xbox-48.png
  1600.               - value: 'off'
  1601.                 color: rgba(65,65,63,0.8)
  1602.                 entity_picture: \local\img\icons8-xbox-48.png
  1603.                 styles:
  1604.                   card:
  1605.                     - filter: opacity(50%)
  1606.                   icon:
  1607.                     - filter: grayscale(100%)
  1608.           - type: custom:button-card
  1609.             entity: switch.sky_q
  1610.             show_title: false
  1611.             aspect_ratio: 1
  1612.             tap_action:
  1613.               action: toggle
  1614.             hold_action:
  1615.               action: fire-dom-event
  1616.               browser_mod:
  1617.                 command: popup
  1618.                 title: Sky Q
  1619.                 card:
  1620.                   type: custom:stack-in-card
  1621.                   cards:
  1622.                     - entity: media_player.sky_q
  1623.                       type: custom:mini-media-player
  1624.                       artwork: artwork
  1625.                       icon: mdi:television-classic
  1626.                       name: SKY Q
  1627.                       group: true
  1628.                       scale: 1
  1629.                       hide:
  1630.                         volume: true
  1631.                         controls: true
  1632.                         power: true
  1633.                         info: false
  1634.             show_entity_picture: true
  1635.             color_type: card
  1636.             show_state: true
  1637.             styles:
  1638.               card:
  1639.                 - font-family: Sf Display
  1640.                 - border-radius: var(--custom-button-card-border-radius)
  1641.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1642.                 - transition: none
  1643.                 - padding: 10%
  1644.               grid:
  1645.                 - grid-template-areas: '"i" "n" "s"'
  1646.                 - grid-template-columns: 1fr
  1647.                 - grid-template-rows: 1fr min-content min-content
  1648.               name:
  1649.                 - justify-self: start
  1650.                 - padding-left: 7px
  1651.                 - font-weight: bold
  1652.                 - font-family: SF Display
  1653.                 - font-size: 14px
  1654.               img_cell:
  1655.                 - justify-content: start
  1656.                 - padding-left: 5px
  1657.                 - padding-top: 10px
  1658.                 - align-items: start
  1659.                 - margin: none
  1660.               state:
  1661.                 - justify-self: start
  1662.                 - font-color: red
  1663.                 - padding-left: 7px
  1664.                 - padding-bottom: 10px
  1665.                 - text-transform: capitalize
  1666.                 - font-family: SF Display
  1667.                 - font-size: 10px
  1668.               icon:
  1669.                 - width: 40%
  1670.             state:
  1671.               - value: 'on'
  1672.                 color: rgba(255,255,255,0.9)
  1673.                 entity_picture: \local\img\icons8-sky-48.png
  1674.               - value: 'off'
  1675.                 color: rgba(65,65,63,0.8)
  1676.                 entity_picture: \local\img\icons8-sky-48.png
  1677.                 styles:
  1678.                   card:
  1679.                     - filter: opacity(50%)
  1680.                   icon:
  1681.                     - filter: grayscale(100%)
  1682.           - type: custom:swipe-card
  1683.             title: Lieblingssender
  1684.             aspect_ratio: 1
  1685.             show_title: false
  1686.             parameters:
  1687.               effect: coverflow
  1688.               grabCursor: true
  1689.               centeredSlides: true
  1690.               slidesPerView: auto
  1691.               coverflowEffect:
  1692.                 rotate: 50
  1693.                 stretch: 0
  1694.                 depth: 100
  1695.                 modifier: 1
  1696.                 slideShadows: true
  1697.               pagination:
  1698.                 type: none
  1699.             cards:
  1700.               - type: custom:button-card
  1701.                 entity: script.1633693084602
  1702.                 entity_picture: \local\img\icon_512-80s.png
  1703.                 aspect_ratio: 1/1
  1704.                 tap_action:
  1705.                   action: call-service
  1706.                   service: script.1633693084602
  1707.                 name: 80s80s
  1708.                 color_type: card
  1709.                 show_state: false
  1710.                 show_name: false
  1711.                 show_entity_picture: true
  1712.                 styles:
  1713.                   card:
  1714.                     - font-family: Sf Display
  1715.                     - border-radius: var(--custom-button-card-border-radius)
  1716.                     - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1717.                     - transition: none
  1718.                     - padding: 10%
  1719.                   grid:
  1720.                     - grid-template-areas: '"i" "n" "s"'
  1721.                     - grid-template-columns: 1fr
  1722.                     - grid-template-rows: 1fr min-content min-content
  1723.                   name:
  1724.                     - justify-self: start
  1725.                     - padding-left: 7px
  1726.                     - font-weight: bold
  1727.                     - padding-bottom: 25px
  1728.                     - font-family: SF Display
  1729.                     - font-size: 14px
  1730.                   img_cell:
  1731.                     - justify-content: start
  1732.                     - padding-left: 0px
  1733.                     - padding-top: 0px
  1734.                     - align-items: start
  1735.                     - margin: none
  1736.                   state:
  1737.                     - justify-self: start
  1738.                     - font-color: red
  1739.                     - padding-left: 0px
  1740.                     - padding-bottom: 0px
  1741.                     - text-transform: capitalize
  1742.                     - font-family: SF Display
  1743.                     - font-size: 10px
  1744.                   icon:
  1745.                     - width: 100%
  1746.                     - border-radius: var(--custom-button-card-border-radius)
  1747.               - type: custom:button-card
  1748.                 entity: script.ndr2
  1749.                 entity_picture: \local\img\icon_512-ndr2.png
  1750.                 aspect_ratio: 1/1
  1751.                 tap_action:
  1752.                   action: call-service
  1753.                   service: script.ndr2
  1754.                 name: NDR 2
  1755.                 color_type: card
  1756.                 show_state: false
  1757.                 show_name: false
  1758.                 show_entity_picture: true
  1759.                 styles:
  1760.                   card:
  1761.                     - font-family: Sf Display
  1762.                     - border-radius: var(--custom-button-card-border-radius)
  1763.                     - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1764.                     - transition: none
  1765.                     - padding: 10%
  1766.                   grid:
  1767.                     - grid-template-areas: '"i" "n" "s"'
  1768.                     - grid-template-columns: 1fr
  1769.                     - grid-template-rows: 1fr min-content min-content
  1770.                   name:
  1771.                     - justify-self: start
  1772.                     - padding-left: 7px
  1773.                     - font-weight: bold
  1774.                     - padding-bottom: 25px
  1775.                     - font-family: SF Display
  1776.                     - font-size: 14px
  1777.                   img_cell:
  1778.                     - justify-content: start
  1779.                     - padding-left: 0px
  1780.                     - padding-top: 0px
  1781.                     - align-items: start
  1782.                     - margin: none
  1783.                   state:
  1784.                     - justify-self: start
  1785.                     - font-color: red
  1786.                     - padding-left: 0px
  1787.                     - padding-bottom: 0px
  1788.                     - text-transform: capitalize
  1789.                     - font-family: SF Display
  1790.                     - font-size: 10px
  1791.                   icon:
  1792.                     - width: 100%
  1793.                     - border-radius: var(--custom-button-card-border-radius)
  1794.               - type: custom:button-card
  1795.                 entity: script.radio_hamburg
  1796.                 entity_picture: \local\img\icon_512-RHH.png
  1797.                 aspect_ratio: 1/1
  1798.                 tap_action:
  1799.                   action: call-service
  1800.                   service: script.radio_hamburg
  1801.                 name: Radio Hamburg
  1802.                 color_type: card
  1803.                 show_state: false
  1804.                 show_name: false
  1805.                 show_entity_picture: true
  1806.                 styles:
  1807.                   card:
  1808.                     - font-family: Sf Display
  1809.                     - border-radius: var(--custom-button-card-border-radius)
  1810.                     - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1811.                     - transition: none
  1812.                     - padding: 10%
  1813.                   grid:
  1814.                     - grid-template-areas: '"i" "n" "s"'
  1815.                     - grid-template-columns: 1fr
  1816.                     - grid-template-rows: 1fr min-content min-content
  1817.                   name:
  1818.                     - justify-self: start
  1819.                     - padding-left: 7px
  1820.                     - font-weight: bold
  1821.                     - padding-bottom: 25px
  1822.                     - font-family: SF Display
  1823.                     - font-size: 14px
  1824.                   img_cell:
  1825.                     - justify-content: start
  1826.                     - padding-left: 0px
  1827.                     - padding-top: 0px
  1828.                     - align-items: start
  1829.                     - margin: none
  1830.                   state:
  1831.                     - justify-self: start
  1832.                     - font-color: red
  1833.                     - padding-left: 0px
  1834.                     - padding-bottom: 0px
  1835.                     - text-transform: capitalize
  1836.                     - font-family: SF Display
  1837.                     - font-size: 10px
  1838.                   icon:
  1839.                     - width: 100%
  1840.                     - border-radius: var(--custom-button-card-border-radius)
  1841.               - type: custom:button-card
  1842.                 entity: script.n_joy
  1843.                 entity_picture: \local\img\icon_512-Njoy.png
  1844.                 aspect_ratio: 1/1
  1845.                 tap_action:
  1846.                   action: call-service
  1847.                   service: script.n_joy
  1848.                 name: Radio Hamburg
  1849.                 color_type: card
  1850.                 show_state: false
  1851.                 show_name: false
  1852.                 show_entity_picture: true
  1853.                 styles:
  1854.                   card:
  1855.                     - font-family: Sf Display
  1856.                     - border-radius: var(--custom-button-card-border-radius)
  1857.                     - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1858.                     - transition: none
  1859.                     - padding: 10%
  1860.                   grid:
  1861.                     - grid-template-areas: '"i" "n" "s"'
  1862.                     - grid-template-columns: 1fr
  1863.                     - grid-template-rows: 1fr min-content min-content
  1864.                   name:
  1865.                     - justify-self: start
  1866.                     - padding-left: 7px
  1867.                     - font-weight: bold
  1868.                     - padding-bottom: 25px
  1869.                     - font-family: SF Display
  1870.                     - font-size: 14px
  1871.                   img_cell:
  1872.                     - justify-content: start
  1873.                     - padding-left: 0px
  1874.                     - padding-top: 0px
  1875.                     - align-items: start
  1876.                     - margin: none
  1877.                   state:
  1878.                     - justify-self: start
  1879.                     - font-color: red
  1880.                     - padding-left: 0px
  1881.                     - padding-bottom: 0px
  1882.                     - text-transform: capitalize
  1883.                     - font-family: SF Display
  1884.                     - font-size: 10px
  1885.                   icon:
  1886.                     - width: 100%
  1887.                     - border-radius: var(--custom-button-card-border-radius)
  1888.               - type: custom:button-card
  1889.                 entity: script.spotify_mixtape
  1890.                 entity_picture: \local\img\icons8-spotify.PNG
  1891.                 aspect_ratio: 1/1
  1892.                 tap_action:
  1893.                   action: call-service
  1894.                   service: script.spotify_mixtape
  1895.                 name: Spotify Mixtape
  1896.                 color_type: card
  1897.                 show_state: false
  1898.                 show_name: false
  1899.                 show_entity_picture: true
  1900.                 styles:
  1901.                   card:
  1902.                     - font-family: Sf Display
  1903.                     - border-radius: var(--custom-button-card-border-radius)
  1904.                     - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1905.                     - transition: none
  1906.                     - padding: 10%
  1907.                   grid:
  1908.                     - grid-template-areas: '"i" "n" "s"'
  1909.                     - grid-template-columns: 1fr
  1910.                     - grid-template-rows: 1fr min-content min-content
  1911.                   name:
  1912.                     - justify-self: start
  1913.                     - padding-left: 7px
  1914.                     - font-weight: bold
  1915.                     - padding-bottom: 25px
  1916.                     - font-family: SF Display
  1917.                     - font-size: 14px
  1918.                   img_cell:
  1919.                     - justify-content: start
  1920.                     - padding-left: 0px
  1921.                     - padding-top: 0px
  1922.                     - align-items: start
  1923.                     - margin: none
  1924.                   state:
  1925.                     - justify-self: start
  1926.                     - font-color: red
  1927.                     - padding-left: 0px
  1928.                     - padding-bottom: 0px
  1929.                     - text-transform: capitalize
  1930.                     - font-family: SF Display
  1931.                     - font-size: 10px
  1932.                   icon:
  1933.                     - width: 100%
  1934.                     - border-radius: var(--custom-button-card-border-radius)
  1935.               - type: custom:button-card
  1936.                 entity: script.fcsp_playlist
  1937.                 entity_picture: \local\img\icons8-fcsp.PNG
  1938.                 aspect_ratio: 1/1
  1939.                 tap_action:
  1940.                   action: call-service
  1941.                   service: script.fcsp_playlist
  1942.                 name: FCSP Playlist
  1943.                 color_type: card
  1944.                 show_state: false
  1945.                 show_name: false
  1946.                 show_entity_picture: true
  1947.                 styles:
  1948.                   card:
  1949.                     - font-family: Sf Display
  1950.                     - border-radius: var(--custom-button-card-border-radius)
  1951.                     - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1952.                     - transition: none
  1953.                     - padding: 10%
  1954.                   grid:
  1955.                     - grid-template-areas: '"i" "n" "s"'
  1956.                     - grid-template-columns: 1fr
  1957.                     - grid-template-rows: 1fr min-content min-content
  1958.                   name:
  1959.                     - justify-self: start
  1960.                     - padding-left: 7px
  1961.                     - font-weight: bold
  1962.                     - padding-bottom: 25px
  1963.                     - font-family: SF Display
  1964.                     - font-size: 14px
  1965.                   img_cell:
  1966.                     - justify-content: start
  1967.                     - padding-left: 0px
  1968.                     - padding-top: 0px
  1969.                     - align-items: start
  1970.                     - margin: none
  1971.                   state:
  1972.                     - justify-self: start
  1973.                     - font-color: red
  1974.                     - padding-left: 0px
  1975.                     - padding-bottom: 0px
  1976.                     - text-transform: capitalize
  1977.                     - font-family: SF Display
  1978.                     - font-size: 10px
  1979.                   icon:
  1980.                     - width: 100%
  1981.                     - border-radius: var(--custom-button-card-border-radius)
  1982.               - type: custom:button-card
  1983.                 entity: script.mukke
  1984.                 entity_picture: \local\img\icons8-mukke.PNG
  1985.                 aspect_ratio: 1/1
  1986.                 tap_action:
  1987.                   action: call-service
  1988.                   service: script.mukke
  1989.                 name: Mukke
  1990.                 color_type: card
  1991.                 show_state: false
  1992.                 show_name: false
  1993.                 show_entity_picture: true
  1994.                 styles:
  1995.                   card:
  1996.                     - font-family: Sf Display
  1997.                     - border-radius: var(--custom-button-card-border-radius)
  1998.                     - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  1999.                     - transition: none
  2000.                     - padding: 10%
  2001.                   grid:
  2002.                     - grid-template-areas: '"i" "n" "s"'
  2003.                     - grid-template-columns: 1fr
  2004.                     - grid-template-rows: 1fr min-content min-content
  2005.                   name:
  2006.                     - justify-self: start
  2007.                     - padding-left: 7px
  2008.                     - font-weight: bold
  2009.                     - padding-bottom: 25px
  2010.                     - font-family: SF Display
  2011.                     - font-size: 14px
  2012.                   img_cell:
  2013.                     - justify-content: start
  2014.                     - padding-left: 0px
  2015.                     - padding-top: 0px
  2016.                     - align-items: start
  2017.                     - margin: none
  2018.                   state:
  2019.                     - justify-self: start
  2020.                     - font-color: red
  2021.                     - padding-left: 0px
  2022.                     - padding-bottom: 0px
  2023.                     - text-transform: capitalize
  2024.                     - font-family: SF Display
  2025.                     - font-size: 10px
  2026.                   icon:
  2027.                     - width: 100%
  2028.                     - border-radius: var(--custom-button-card-border-radius)
  2029.             styles:
  2030.               card:
  2031.                 - font-family: Sf Display
  2032.                 - border-radius: var(--custom-button-card-border-radius)
  2033.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  2034.                 - transition: none
  2035.                 - padding: 10%
  2036.               grid:
  2037.                 - grid-template-areas: '"i" "n" "s"'
  2038.                 - grid-template-columns: 1fr
  2039.                 - grid-template-rows: 1fr min-content min-content
  2040.               name:
  2041.                 - justify-self: start
  2042.                 - padding-left: 7px
  2043.                 - font-weight: bold
  2044.                 - font-family: SF Display
  2045.                 - font-size: 14px
  2046.               img_cell:
  2047.                 - justify-content: start
  2048.                 - padding-left: 5px
  2049.                 - padding-top: 10px
  2050.                 - align-items: start
  2051.                 - margin: none
  2052.               state:
  2053.                 - justify-self: start
  2054.                 - font-color: red
  2055.                 - padding-left: 7px
  2056.                 - padding-bottom: 10px
  2057.                 - text-transform: capitalize
  2058.                 - font-family: SF Display
  2059.                 - font-size: 10px
  2060.         title: Media
  2061.         columns: 2
  2062.         view_layout:
  2063.           grid-area: media
  2064.       - type: grid
  2065.         cards:
  2066.           - type: custom:button-card
  2067.             entity: person.dirk_albrecht
  2068.             aspect_ratio: 1
  2069.             color_type: card
  2070.             name: Dirk
  2071.             triggers_update:
  2072.              - sensor.dirk_last_changed
  2073.               - sensor.time
  2074.             variables:
  2075.               retain: sensor.dirk_last_changed
  2076.             show_state: true
  2077.             tap_action:
  2078.               action: fire-dom-event
  2079.               browser_mod:
  2080.                 command: popup
  2081.                 title: Dirk
  2082.                 style:
  2083.                   hui-vertical-stack-card:
  2084.                     $hui-history-graph-card$: |
  2085.                      .content {
  2086.                         padding: 0.2em 1.7em 1.2em 1.7em !important;
  2087.                       }
  2088.                     $: |
  2089.                      button-card {
  2090.                         align-self: center;
  2091.                         padding: 0.2em 0 2.3em 0;
  2092.                       }
  2093.                     $hui-map-card:
  2094.                       $: |
  2095.                        mwc-icon-button {
  2096.                           color: var(--primary-color);
  2097.                         }
  2098.                         ha-card {
  2099.                           border-radius: 0;
  2100.                           animation: border 1s forwards;
  2101.                         }
  2102.                         @keyframes border {
  2103.                           0%, 100% {
  2104.                             border-top: 2px solid #1a1a1a;
  2105.                           }
  2106.                         }
  2107.                       $ha-map$: |
  2108.                        #map {
  2109.                           background-color: #191919 !important;
  2110.                         }
  2111.                         .leaflet-control-attribution {
  2112.                           display: none;
  2113.                         }
  2114.                         .leaflet-bar a {
  2115.                           background-color: rgba(47, 51, 51, 0.9) !important;
  2116.                           color: #9da0a2 !important;
  2117.                         }
  2118.                         a.leaflet-control-zoom-in {
  2119.                           border-bottom: 1px solid #181818 !important;
  2120.                         }
  2121.                         .leaflet-pane.leaflet-tile-pane {
  2122.                           filter: contrast(85%);
  2123.                         }
  2124.                 card:
  2125.                   type: vertical-stack
  2126.                   cards:
  2127.                     - type: entities
  2128.                       card_mod:
  2129.                         class: content
  2130.                       entities:
  2131.                         - entity: person.dirk_albrecht
  2132.                           secondary_info: last-changed
  2133.                     - type: history-graph
  2134.                       entities:
  2135.                         - entity: person.dirk_albrecht
  2136.                     - type: glance
  2137.                       show_state: false
  2138.                       entities:
  2139.                         - entity: device_tracker.iphone_von_dirk
  2140.                           name: Router
  2141.                           icon: mdi:wifi
  2142.                           style: |
  2143.                            state-badge {
  2144.                               color: {{ '#3182b7' if is_state(config.entity, 'home') else '#3c3f3f' }};
  2145.                             }
  2146.                         - entity: sensor.iphone_von_dirk_connection_type
  2147.                           name: Bluetooth
  2148.                           icon: mdi:bluetooth
  2149.                           style: |
  2150.                            state-badge {
  2151.                               color: {{ '#3182b7' if is_state(config.entity, 'home') else '#3c3f3f' }};
  2152.                             }
  2153.                     - type: custom:button-card
  2154.                       name: Ton abspielen
  2155.                       icon: mdi:volume-high
  2156.                       tap_action:
  2157.                         action: call-service
  2158.                         service: notify.mobile_app_iphone_von_dirk
  2159.                         service_data:
  2160.                           title: Wo ist mein Iphone
  2161.                           message: Hier ist mein Iphone
  2162.                           data:
  2163.                             push:
  2164.                               sound:
  2165.                                 name: findmy.wav
  2166.                                 critical: 1
  2167.                                 volume: 1
  2168.                     - type: map
  2169.                       default_zoom: 16
  2170.                       dark_mode: true
  2171.                       entities:
  2172.                        - device_tracker.iphone_von_dirk
  2173.             custom_fields:
  2174.               circle: |
  2175.                [[[
  2176.                  if (entity) {
  2177.                     let time = c => {
  2178.                       let s = (c/1e3), m = (c/6e4), h = (c/36e5), d = (c/864e5);
  2179.                       return s < 60 ? parseInt(s) + 's' : m < 60 ? parseInt(m) + 'm' : h < 24 ? parseInt(h) + 'h' : parseInt(d) + 'd';
  2180.                     };
  2181.                     let last_changed = states[variables.retain] == null || states[variables.retain].state == 'unavailable'
  2182.                         ? time(Date.now() - Date.parse(states[entity.entity_id].last_changed))
  2183.                         : time(Date.now() - Date.parse(states[variables.retain].state)),
  2184.                       stroke = variables.state === 'home' ? 'rgba(255,0,0,1.0)' : 'none',
  2185.                       fill = variables.state === 'not_home' ? 'rgba(255,0,0,1.0)' : 'none';
  2186.                  const radius = 100;
  2187.                  const circumference = radius * 2 * Math.PI;
  2188.                  return `<svg viewBox="0 0 50 50"><style>circle { transform: rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray: ${circumference};stroke-dashoffset: ${circumference - last_changed / 100 * circumference};}
  2189.                  tspan {font-size: 10px;}</style> <circle cx="25" cy="25" r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08" style="
  2190.                  transform: rotate(-90deg); transform-origin: 50% 50%;" />
  2191.                  <text x="50%" y="54%" fill="#8d8e90" font-size="11" text-anchor="middle" alignment-baseline="middle" dominant-baseline="middle">${last_changed}</text></svg>`; }
  2192.                 ]]]
  2193.             show_entity_picture: true
  2194.             styles:
  2195.               card:
  2196.                 - font-family: Sf Display
  2197.                 - border-radius: var(--custom-button-card-border-radius)
  2198.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  2199.                 - transition: none
  2200.                 - padding: 10%
  2201.               grid:
  2202.                 - grid-template-areas: '"i" "n" "s"'
  2203.                 - grid-template-columns: 1fr
  2204.                 - grid-template-rows: 1fr min-content min-content
  2205.               name:
  2206.                 - justify-self: start
  2207.                 - padding-left: 7px
  2208.                 - font-weight: bold
  2209.                 - font-family: SF Display
  2210.                 - font-size: 14px
  2211.               img_cell:
  2212.                 - justify-content: start
  2213.                 - padding-left: 5px
  2214.                 - padding-top: 10px
  2215.                 - align-items: start
  2216.                 - margin: none
  2217.               state:
  2218.                 - justify-self: start
  2219.                 - font-color: red
  2220.                 - padding-left: 7px
  2221.                 - padding-bottom: 10px
  2222.                 - text-transform: capitalize
  2223.                 - font-family: SF Display
  2224.                 - font-size: 11px
  2225.               icon:
  2226.                 - width: 40%
  2227.                 - clip-path: circle()
  2228.               custom_fields:
  2229.                 circle:
  2230.                   - align-self: start
  2231.                   - position: absolute
  2232.                   - left: 55%
  2233.                   - top: 10%
  2234.                   - width: 40%
  2235.                   - font-size: 18px
  2236.                   - font-weight: 900
  2237.                   - font-family: SF Display
  2238.                   - text-transform: capitalize
  2239.             state:
  2240.               - value: home
  2241.                 color: rgba(255,255,255,0.9)
  2242.                 entity_picture: /api/image/serve/b7f3b1e168629ad56234f2b585f907c7/512x512
  2243.               - value: not_home
  2244.                 color: rgba(65,65,63,0.8)
  2245.                 entity_picture: /api/image/serve/b7f3b1e168629ad56234f2b585f907c7/512x512
  2246.                 styles:
  2247.                   card:
  2248.                     - filter: opacity(50%)
  2249.                   icon:
  2250.                     - filter: grayscale(100%)
  2251.           - type: custom:button-card
  2252.             entity: person.christina_wolk
  2253.             aspect_ratio: 1
  2254.             color_type: card
  2255.             name: Christina
  2256.             triggers_update:
  2257.              - sensor.christina_last_changed
  2258.               - sensor.time
  2259.             variables:
  2260.               retain: sensor.christina_last_changed
  2261.             show_state: true
  2262.             tap_action:
  2263.               action: fire-dom-event
  2264.               browser_mod:
  2265.                 command: popup
  2266.                 title: Dirk
  2267.                 style:
  2268.                   hui-vertical-stack-card:
  2269.                     $hui-history-graph-card$: |
  2270.                      .content {
  2271.                         padding: 0.2em 1.7em 1.2em 1.7em !important;
  2272.                       }
  2273.                     $: |
  2274.                      button-card {
  2275.                         align-self: center;
  2276.                         padding: 0.2em 0 2.3em 0;
  2277.                       }
  2278.                     $hui-map-card:
  2279.                       $: |
  2280.                        mwc-icon-button {
  2281.                           color: var(--primary-color);
  2282.                         }
  2283.                         ha-card {
  2284.                           border-radius: 0;
  2285.                           animation: border 1s forwards;
  2286.                         }
  2287.                         @keyframes border {
  2288.                           0%, 100% {
  2289.                             border-top: 2px solid #1a1a1a;
  2290.                           }
  2291.                         }
  2292.                       $ha-map$: |
  2293.                        #map {
  2294.                           background-color: #191919 !important;
  2295.                         }
  2296.                         .leaflet-control-attribution {
  2297.                           display: none;
  2298.                         }
  2299.                         .leaflet-bar a {
  2300.                           background-color: rgba(47, 51, 51, 0.9) !important;
  2301.                           color: #9da0a2 !important;
  2302.                         }
  2303.                         a.leaflet-control-zoom-in {
  2304.                           border-bottom: 1px solid #181818 !important;
  2305.                         }
  2306.                         .leaflet-pane.leaflet-tile-pane {
  2307.                           filter: contrast(85%);
  2308.                         }
  2309.                 card:
  2310.                   type: vertical-stack
  2311.                   cards:
  2312.                     - type: entities
  2313.                       card_mod:
  2314.                         class: content
  2315.                       entities:
  2316.                         - entity: person.christina_wolk
  2317.                           secondary_info: last-changed
  2318.                     - type: history-graph
  2319.                       entities:
  2320.                         - entity: person.christina_wolk
  2321.                     - type: glance
  2322.                       show_state: false
  2323.                       entities:
  2324.                         - entity: device_tracker.iphonevhristina_6
  2325.                           name: Router
  2326.                           icon: mdi:wifi
  2327.                           style: |
  2328.                            state-badge {
  2329.                               color: {{ '#3182b7' if is_state(config.entity, 'home') else '#3c3f3f' }};
  2330.                             }
  2331.                         - entity: device_tracker.iphonevhristina_6
  2332.                           name: Bluetooth
  2333.                           icon: mdi:bluetooth
  2334.                           style: |
  2335.                            state-badge {
  2336.                               color: {{ '#3182b7' if is_state(config.entity, 'home') else '#3c3f3f' }};
  2337.                             }
  2338.                     - type: custom:button-card
  2339.                       name: Ton abspielen
  2340.                       icon: mdi:volume-high
  2341.                       tap_action:
  2342.                         action: call-service
  2343.                         service: notify.mobile_app_iphone_von_dirk
  2344.                         service_data:
  2345.                           title: Wo ist mein Iphone
  2346.                           message: Hier ist mein Iphone
  2347.                           data:
  2348.                             push:
  2349.                               sound:
  2350.                                 name: findmy.wav
  2351.                                 critical: 1
  2352.                                 volume: 1
  2353.                     - type: map
  2354.                       default_zoom: 16
  2355.                       dark_mode: true
  2356.                       entities:
  2357.                        - device_tracker.iphonevhristina_5
  2358.             custom_fields:
  2359.               circle: |
  2360.                [[[
  2361.                  if (entity) {
  2362.                     let time = c => {
  2363.                       let s = (c/1e3), m = (c/6e4), h = (c/36e5), d = (c/864e5);
  2364.                       return s < 60 ? parseInt(s) + 's' : m < 60 ? parseInt(m) + 'm' : h < 24 ? parseInt(h) + 'h' : parseInt(d) + 'd';
  2365.                     };
  2366.                     let last_changed = states[variables.retain] == null || states[variables.retain].state == 'unavailable'
  2367.                         ? time(Date.now() - Date.parse(states[entity.entity_id].last_changed))
  2368.                         : time(Date.now() - Date.parse(states[variables.retain].state)),
  2369.                       stroke = variables.state === 'home' ? 'rgba(255,0,0,1.0)' : 'none',
  2370.                       fill = variables.state === 'not_home' ? 'rgba(255,0,0,1.0)' : 'none';
  2371.                  const radius = 100;
  2372.                  const circumference = radius * 2 * Math.PI;
  2373.                  return `<svg viewBox="0 0 50 50"><style>circle { transform: rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray: ${circumference};stroke-dashoffset: ${circumference - last_changed / 100 * circumference};}
  2374.                  tspan {font-size: 10px;}</style> <circle cx="25" cy="25" r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08" style="
  2375.                  transform: rotate(-90deg); transform-origin: 50% 50%;" />
  2376.                  <text x="50%" y="54%" fill="#8d8e90" font-size="11" text-anchor="middle" alignment-baseline="middle" dominant-baseline="middle">${last_changed}</text></svg>`; }
  2377.                 ]]]
  2378.             show_entity_picture: true
  2379.             styles:
  2380.               card:
  2381.                 - font-family: Sf Display
  2382.                 - border-radius: var(--custom-button-card-border-radius)
  2383.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  2384.                 - transition: none
  2385.                 - padding: 10%
  2386.               grid:
  2387.                 - grid-template-areas: '"i" "n" "s"'
  2388.                 - grid-template-columns: 1fr
  2389.                 - grid-template-rows: 1fr min-content min-content
  2390.               name:
  2391.                 - justify-self: start
  2392.                 - padding-left: 7px
  2393.                 - font-weight: bold
  2394.                 - font-family: SF Display
  2395.                 - font-size: 14px
  2396.               img_cell:
  2397.                 - justify-content: start
  2398.                 - padding-left: 5px
  2399.                 - padding-top: 10px
  2400.                 - align-items: start
  2401.                 - margin: none
  2402.               state:
  2403.                 - justify-self: start
  2404.                 - font-color: red
  2405.                 - padding-left: 7px
  2406.                 - padding-bottom: 10px
  2407.                 - text-transform: capitalize
  2408.                 - font-family: SF Display
  2409.                 - font-size: 11px
  2410.               icon:
  2411.                 - width: 40%
  2412.                 - clip-path: circle()
  2413.               custom_fields:
  2414.                 circle:
  2415.                   - align-self: start
  2416.                   - position: absolute
  2417.                   - left: 55%
  2418.                   - top: 10%
  2419.                   - width: 40%
  2420.                   - font-size: 18px
  2421.                   - font-weight: 900
  2422.                   - font-family: SF Display
  2423.                   - text-transform: capitalize
  2424.             state:
  2425.               - value: home
  2426.                 color: rgba(255,255,255,0.9)
  2427.                 entity_picture: /api/image/serve/36316d04d8443179c55b829589922249/512x512
  2428.               - value: not_home
  2429.                 color: rgba(65,65,63,0.8)
  2430.                 entity_picture: /api/image/serve/36316d04d8443179c55b829589922249/512x512
  2431.                 styles:
  2432.                   card:
  2433.                     - filter: opacity(50%)
  2434.                   icon:
  2435.                     - filter: grayscale(100%)
  2436.           - type: custom:button-card
  2437.             entity: person.mia_wolk
  2438.             aspect_ratio: 1
  2439.             color_type: card
  2440.             name: Mia
  2441.             triggers_update:
  2442.              - sensor.mia_last_changed
  2443.               - sensor.time
  2444.             variables:
  2445.               retain: sensor.mia_last_changed
  2446.             show_state: true
  2447.             custom_fields:
  2448.               circle: |
  2449.                [[[
  2450.                  if (entity) {
  2451.                     let time = c => {
  2452.                       let s = (c/1e3), m = (c/6e4), h = (c/36e5), d = (c/864e5);
  2453.                       return s < 60 ? parseInt(s) + 's' : m < 60 ? parseInt(m) + 'm' : h < 24 ? parseInt(h) + 'h' : parseInt(d) + 'd';
  2454.                     };
  2455.                     let last_changed = states[variables.retain] == null || states[variables.retain].state == 'unavailable'
  2456.                         ? time(Date.now() - Date.parse(states[entity.entity_id].last_changed))
  2457.                         : time(Date.now() - Date.parse(states[variables.retain].state)),
  2458.                       stroke = variables.state === 'home' ? 'rgba(255,0,0,1.0)' : 'none',
  2459.                       fill = variables.state === 'not_home' ? 'rgba(255,0,0,1.0)' : 'none';
  2460.                  const radius = 100;
  2461.                  const circumference = radius * 2 * Math.PI;
  2462.                  return `<svg viewBox="0 0 50 50"><style>circle { transform: rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray: ${circumference};stroke-dashoffset: ${circumference - last_changed / 100 * circumference};}
  2463.                  tspan {font-size: 10px;}</style> <circle cx="25" cy="25" r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08" style="
  2464.                  transform: rotate(-90deg); transform-origin: 50% 50%;" />
  2465.                  <text x="50%" y="54%" fill="#8d8e90" font-size="11" text-anchor="middle" alignment-baseline="middle" dominant-baseline="middle">${last_changed}</text></svg>`; }
  2466.                 ]]]
  2467.             show_entity_picture: true
  2468.             styles:
  2469.               card:
  2470.                 - font-family: Sf Display
  2471.                 - border-radius: var(--custom-button-card-border-radius)
  2472.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  2473.                 - transition: none
  2474.                 - padding: 10%
  2475.               grid:
  2476.                 - grid-template-areas: '"i" "n" "s"'
  2477.                 - grid-template-columns: 1fr
  2478.                 - grid-template-rows: 1fr min-content min-content
  2479.               name:
  2480.                 - justify-self: start
  2481.                 - padding-left: 7px
  2482.                 - font-weight: bold
  2483.                 - font-family: SF Display
  2484.                 - font-size: 14px
  2485.               img_cell:
  2486.                 - justify-content: start
  2487.                 - padding-left: 5px
  2488.                 - padding-top: 10px
  2489.                 - align-items: start
  2490.                 - margin: none
  2491.               state:
  2492.                 - justify-self: start
  2493.                 - font-color: red
  2494.                 - padding-left: 7px
  2495.                 - padding-bottom: 10px
  2496.                 - text-transform: capitalize
  2497.                 - font-family: SF Display
  2498.                 - font-size: 11px
  2499.               icon:
  2500.                 - width: 40%
  2501.                 - clip-path: circle()
  2502.               custom_fields:
  2503.                 circle:
  2504.                   - align-self: start
  2505.                   - position: absolute
  2506.                   - left: 55%
  2507.                   - top: 10%
  2508.                   - width: 40%
  2509.                   - font-size: 18px
  2510.                   - font-weight: 900
  2511.                   - font-family: SF Display
  2512.                   - text-transform: capitalize
  2513.             state:
  2514.               - value: home
  2515.                 color: rgba(255,255,255,0.9)
  2516.                 entity_picture: /api/image/serve/8d30202bc3a6b04136ebb6702394f6c4/512x512
  2517.               - value: not_home
  2518.                 color: rgba(65,65,63,0.8)
  2519.                 entity_picture: /api/image/serve/8d30202bc3a6b04136ebb6702394f6c4/512x512
  2520.                 styles:
  2521.                   card:
  2522.                     - filter: opacity(50%)
  2523.                   icon:
  2524.                     - filter: grayscale(100%)
  2525.           - type: custom:button-card
  2526.             entity: person.tjark_wolk
  2527.             aspect_ratio: 1
  2528.             color_type: card
  2529.             name: Tjark
  2530.             triggers_update:
  2531.              - sensor.tjark_last_changed
  2532.               - sensor.time
  2533.             variables:
  2534.               retain: sensor.tjark_last_changed
  2535.             show_state: true
  2536.             custom_fields:
  2537.               circle: |
  2538.                [[[
  2539.                  if (entity) {
  2540.                     let time = c => {
  2541.                       let s = (c/1e3), m = (c/6e4), h = (c/36e5), d = (c/864e5);
  2542.                       return s < 60 ? parseInt(s) + 's' : m < 60 ? parseInt(m) + 'm' : h < 24 ? parseInt(h) + 'h' : parseInt(d) + 'd';
  2543.                     };
  2544.                     let last_changed = states[variables.retain] == null || states[variables.retain].state == 'unavailable'
  2545.                         ? time(Date.now() - Date.parse(states[entity.entity_id].last_changed))
  2546.                         : time(Date.now() - Date.parse(states[variables.retain].state)),
  2547.                       stroke = variables.state === 'home' ? 'rgba(255,0,0,1.0)' : 'none',
  2548.                       fill = variables.state === 'not_home' ? 'rgba(255,0,0,1.0)' : 'none';
  2549.                  const radius = 100;
  2550.                  const circumference = radius * 2 * Math.PI;
  2551.                  return `<svg viewBox="0 0 50 50"><style>circle { transform: rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray: ${circumference};stroke-dashoffset: ${circumference - last_changed / 100 * circumference};}
  2552.                  tspan {font-size: 10px;}</style> <circle cx="25" cy="25" r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08" style="
  2553.                  transform: rotate(-90deg); transform-origin: 50% 50%;" />
  2554.                  <text x="50%" y="54%" fill="#8d8e90" font-size="11" text-anchor="middle" alignment-baseline="middle" dominant-baseline="middle">${last_changed}</text></svg>`; }
  2555.                 ]]]
  2556.             show_entity_picture: true
  2557.             styles:
  2558.               card:
  2559.                 - font-family: Sf Display
  2560.                 - border-radius: var(--custom-button-card-border-radius)
  2561.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  2562.                 - transition: none
  2563.                 - padding: 10%
  2564.               grid:
  2565.                 - grid-template-areas: '"i" "n" "s"'
  2566.                 - grid-template-columns: 1fr
  2567.                 - grid-template-rows: 1fr min-content min-content
  2568.               name:
  2569.                 - justify-self: start
  2570.                 - padding-left: 7px
  2571.                 - font-weight: bold
  2572.                 - font-family: SF Display
  2573.                 - font-size: 14px
  2574.               img_cell:
  2575.                 - justify-content: start
  2576.                 - padding-left: 5px
  2577.                 - padding-top: 10px
  2578.                 - align-items: start
  2579.                 - margin: none
  2580.               state:
  2581.                 - justify-self: start
  2582.                 - font-color: red
  2583.                 - padding-left: 7px
  2584.                 - padding-bottom: 10px
  2585.                 - text-transform: capitalize
  2586.                 - font-family: SF Display
  2587.                 - font-size: 11px
  2588.               icon:
  2589.                 - width: 40%
  2590.                 - clip-path: circle()
  2591.               custom_fields:
  2592.                 circle:
  2593.                   - align-self: start
  2594.                   - position: absolute
  2595.                   - left: 55%
  2596.                   - top: 10%
  2597.                   - width: 40%
  2598.                   - font-size: 18px
  2599.                   - font-weight: 900
  2600.                   - font-family: SF Display
  2601.                   - text-transform: capitalize
  2602.             state:
  2603.               - value: home
  2604.                 color: rgba(255,255,255,0.9)
  2605.                 entity_picture: /api/image/serve/a80d7fb8ba5a8dec229bdb3aae94f5fc/512x512
  2606.               - value: not_home
  2607.                 color: rgba(65,65,63,0.8)
  2608.                 entity_picture: /api/image/serve/a80d7fb8ba5a8dec229bdb3aae94f5fc/512x512
  2609.                 styles:
  2610.                   card:
  2611.                     - filter: opacity(50%)
  2612.                   icon:
  2613.                     - filter: grayscale(100%)
  2614.         title: Familie
  2615.         columns: 2
  2616.         view_layout:
  2617.           grid-area: familie
  2618.       - type: grid
  2619.         cards:
  2620.           - type: custom:button-card
  2621.             entity: climate.heizung_wohnzimmer
  2622.             aspect_ratio: 1
  2623.             tap_action:
  2624.               action: fire-dom-event
  2625.               browser_mod:
  2626.                 command: popup
  2627.                 title: Wohnzimmer
  2628.                 card:
  2629.                   type: vertical-stack
  2630.                   cards:
  2631.                     - type: thermostat
  2632.                       entity: climate.heizung_wohnzimmer
  2633.                     - type: entities
  2634.                       card_mod:
  2635.                         class: content
  2636.                       entities:
  2637.                         - entity: sensor.temperatur_wohnraum_2
  2638.                           name: Raumtemperatur
  2639.                         - entity: sensor.temperatur_wohnraum_3
  2640.                           name: Luftfeuchtigkeit
  2641.                     - type: custom:mini-graph-card
  2642.                       entities:
  2643.                         - entity: sensor.temperatur_wohnraum_2
  2644.                       line_width: 6
  2645.                       hour24: true
  2646.                       group: true
  2647.                       lign_icon: left
  2648.                       align_state: right
  2649.                       align_header: left
  2650.                       hours_to_show: 24
  2651.                       show:
  2652.                         fill: fade
  2653.                         icon: false
  2654.                         name: false
  2655.                         state: false
  2656.                         name_adaptive_color: false
  2657.                         labels: hover
  2658.                         legend: false
  2659.                   style: |
  2660.                    ha-card {
  2661.                       box-shadow: none;
  2662.                       background: transparent!important;
  2663.                      }
  2664.             name: Wohnzimmer
  2665.             color_type: card
  2666.             show_state: true
  2667.             custom_fields:
  2668.               Temperature: >
  2669.                [[[ {
  2670.  
  2671.                 const temp = Math.round(entity.attributes.temperature);
  2672.  
  2673.                 const radius = 20.5;
  2674.  
  2675.                 const circumference = radius * 2 * Math.PI;
  2676.  
  2677.                 return `<svg viewBox="0 0 50 50"><style>circle { transform:
  2678.                 rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray:
  2679.                 ${circumference};stroke-dashoffset: ${circumference - temp / 100
  2680.                 * circumference};}
  2681.  
  2682.                 tspan {font-size: 10px;}</style> <circle cx="25" cy="25"
  2683.                 r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08"
  2684.                 style="
  2685.  
  2686.                 transform: rotate(-90deg); transform-origin: 50% 50%;" />
  2687.  
  2688.                 <text x="50%" y="54%" fill="#8d8e90" font-size="11"
  2689.                 text-anchor="middle" alignment-baseline="middle"
  2690.                 dominant-baseline="middle">${temp}°</text></svg>`; } ]]]
  2691.             show_entity_picture: true
  2692.             styles:
  2693.               card:
  2694.                 - font-family: Sf Display
  2695.                 - border-radius: var(--custom-button-card-border-radius)
  2696.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  2697.                 - transition: none
  2698.                 - padding: 10%
  2699.               grid:
  2700.                 - grid-template-areas: '"i" "n" "s"'
  2701.                 - grid-template-columns: 1fr
  2702.                 - grid-template-rows: 1fr min-content min-content
  2703.               name:
  2704.                 - justify-self: start
  2705.                 - padding-left: 7px
  2706.                 - font-weight: bold
  2707.                 - font-family: SF Display
  2708.                 - font-size: 14px
  2709.               img_cell:
  2710.                 - justify-content: start
  2711.                 - padding-left: 5px
  2712.                 - padding-top: 10px
  2713.                 - align-items: start
  2714.                 - margin: none
  2715.               state:
  2716.                 - justify-self: start
  2717.                 - font-color: red
  2718.                 - padding-left: 7px
  2719.                 - padding-bottom: 10px
  2720.                 - text-transform: capitalize
  2721.                 - font-family: SF Display
  2722.                 - font-size: 10px
  2723.               icon:
  2724.                 - width: 40%
  2725.               custom_fields:
  2726.                 Temperature:
  2727.                   - align-self: start
  2728.                   - position: absolute
  2729.                   - left: 55%
  2730.                   - top: 10%
  2731.                   - width: 40%
  2732.                   - font-size: 18px
  2733.                   - font-weight: 900
  2734.                   - font-family: SF Display
  2735.                   - text-transform: capitalize
  2736.             state:
  2737.               - value: heat
  2738.                 entity_picture: \local\img\icons8-heizkörper-48.png
  2739.                 color: rgba(255,255,255,0.9)
  2740.               - value: 'off'
  2741.                 entity_picture: \local\img\icons8-heizkörper-48.png
  2742.                 color: rgba(65,65,63,0.8)
  2743.                 styles:
  2744.                   card:
  2745.                     - filter: opacity(50%)
  2746.                   icon:
  2747.                     - filter: grayscale(100%)
  2748.           - type: custom:button-card
  2749.             entity: climate.heizung_esszimmer
  2750.             aspect_ratio: 1
  2751.             tap_action:
  2752.               action: fire-dom-event
  2753.               browser_mod:
  2754.                 command: popup
  2755.                 title: Esszimmer
  2756.                 style:
  2757.                   hui-vertical-stack-card:
  2758.                     $hui-entities-card$: |
  2759.                      #states {
  2760.                         padding-top: 0.5em;
  2761.                         padding-bottom: 1.2em;
  2762.                       }
  2763.                 card:
  2764.                   type: vertical-stack
  2765.                   cards:
  2766.                     - type: thermostat
  2767.                       entity: climate.heizung_esszimmer
  2768.                     - type: entities
  2769.                       card_mod:
  2770.                         class: content
  2771.                       entities:
  2772.                         - entity: sensor.temperatur_wohnraum_2
  2773.                           name: Raumtemperatur
  2774.                         - entity: sensor.temperatur_wohnraum_3
  2775.                           name: Luftfeuchtigkeit
  2776.                     - type: custom:mini-graph-card
  2777.                       entities:
  2778.                         - entity: sensor.temperatur_wohnraum_2
  2779.                       line_width: 6
  2780.                       hour24: true
  2781.                       group: true
  2782.                       lign_icon: left
  2783.                       align_state: right
  2784.                       align_header: left
  2785.                       hours_to_show: 24
  2786.                       show:
  2787.                         fill: fade
  2788.                         icon: false
  2789.                         name: false
  2790.                         state: false
  2791.                         name_adaptive_color: false
  2792.                         labels: hover
  2793.                         legend: false
  2794.                       tap_action:
  2795.                         action: none
  2796.                   style: |
  2797.                    ha-card {
  2798.                       box-shadow: none;
  2799.                       background: transparent!important;
  2800.                      }
  2801.             name: Esszimmer
  2802.             color_type: card
  2803.             show_state: true
  2804.             custom_fields:
  2805.               Temperature: >
  2806.                [[[ {
  2807.  
  2808.                 const temp = Math.round(entity.attributes.temperature);
  2809.  
  2810.                 const radius = 20.5;
  2811.  
  2812.                 const circumference = radius * 2 * Math.PI;
  2813.  
  2814.                 return `<svg viewBox="0 0 50 50"><style>circle { transform:
  2815.                 rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray:
  2816.                 ${circumference};stroke-dashoffset: ${circumference - temp / 100
  2817.                 * circumference};}
  2818.  
  2819.                 tspan {font-size: 10px;}</style> <circle cx="25" cy="25"
  2820.                 r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08"
  2821.                 style="
  2822.  
  2823.                 transform: rotate(-90deg); transform-origin: 50% 50%;" />
  2824.  
  2825.                 <text x="50%" y="54%" fill="#8d8e90" font-size="11"
  2826.                 text-anchor="middle" alignment-baseline="middle"
  2827.                 dominant-baseline="middle">${temp}°</text></svg>`; } ]]]
  2828.             show_entity_picture: true
  2829.             styles:
  2830.               card:
  2831.                 - font-family: Sf Display
  2832.                 - border-radius: var(--custom-button-card-border-radius)
  2833.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  2834.                 - transition: none
  2835.                 - padding: 10%
  2836.               grid:
  2837.                 - grid-template-areas: '"i" "n" "s"'
  2838.                 - grid-template-columns: 1fr
  2839.                 - grid-template-rows: 1fr min-content min-content
  2840.               name:
  2841.                 - justify-self: start
  2842.                 - padding-left: 7px
  2843.                 - font-weight: bold
  2844.                 - font-family: SF Display
  2845.                 - font-size: 14px
  2846.               img_cell:
  2847.                 - justify-content: start
  2848.                 - padding-left: 5px
  2849.                 - padding-top: 10px
  2850.                 - align-items: start
  2851.                 - margin: none
  2852.               state:
  2853.                 - justify-self: start
  2854.                 - font-color: red
  2855.                 - padding-left: 7px
  2856.                 - padding-bottom: 10px
  2857.                 - text-transform: capitalize
  2858.                 - font-family: SF Display
  2859.                 - font-size: 10px
  2860.               icon:
  2861.                 - width: 40%
  2862.               custom_fields:
  2863.                 Temperature:
  2864.                   - align-self: start
  2865.                   - position: absolute
  2866.                   - left: 55%
  2867.                   - top: 10%
  2868.                   - width: 40%
  2869.                   - font-size: 18px
  2870.                   - font-weight: 900
  2871.                   - font-family: SF Display
  2872.                   - text-transform: capitalize
  2873.             state:
  2874.               - value: heat
  2875.                 entity_picture: \local\img\icons8-heizkörper-48.png
  2876.                 color: rgba(255,255,255,0.9)
  2877.               - value: 'off'
  2878.                 entity_picture: \local\img\icons8-heizkörper-48.png
  2879.                 color: rgba(65,65,63,0.8)
  2880.                 styles:
  2881.                   card:
  2882.                     - filter: opacity(50%)
  2883.                   icon:
  2884.                     - filter: grayscale(100%)
  2885.           - type: custom:button-card
  2886.             entity: climate.heizung_gastebad
  2887.             aspect_ratio: 1
  2888.             tap_action:
  2889.               action: fire-dom-event
  2890.               browser_mod:
  2891.                 command: popup
  2892.                 title: Esszimmer
  2893.                 card:
  2894.                   type: vertical-stack
  2895.                   cards:
  2896.                     - type: thermostat
  2897.                       entity: climate.heizung_gastebad
  2898.                     - type: entities
  2899.                       card_mod:
  2900.                         class: content
  2901.                       entities:
  2902.                         - entity: sensor.temperature_7
  2903.                           name: Raumtemperatur
  2904.                         - entity: sensor.humidity_8
  2905.                           name: Luftfeuchtigkeit
  2906.                     - type: custom:mini-graph-card
  2907.                       entities:
  2908.                         - entity: sensor.temperatur_wohnraum_2
  2909.                       line_width: 6
  2910.                       hour24: true
  2911.                       group: true
  2912.                       lign_icon: left
  2913.                       align_state: right
  2914.                       align_header: left
  2915.                       hours_to_show: 24
  2916.                       show:
  2917.                         fill: fade
  2918.                         icon: false
  2919.                         name: false
  2920.                         state: false
  2921.                         name_adaptive_color: false
  2922.                         labels: hover
  2923.                         legend: false
  2924.                   style: |
  2925.                    ha-card {
  2926.                       box-shadow: none;
  2927.                       background: transparent;
  2928.                       font-size: 10px!important;
  2929.                       font-color: rgba(255,0,0,0.8)!important;
  2930.                     }
  2931.             name: Gästebad
  2932.             color_type: card
  2933.             show_state: true
  2934.             custom_fields:
  2935.               Temperature: >
  2936.                [[[ {
  2937.  
  2938.                 const temp = Math.round(entity.attributes.temperature);
  2939.  
  2940.                 const radius = 20.5;
  2941.  
  2942.                 const circumference = radius * 2 * Math.PI;
  2943.  
  2944.                 return `<svg viewBox="0 0 50 50"><style>circle { transform:
  2945.                 rotate(-90deg); transform-origin: 50% 50%;stroke-dasharray:
  2946.                 ${circumference};stroke-dashoffset: ${circumference - temp / 100
  2947.                 * circumference};}
  2948.  
  2949.                 tspan {font-size: 10px;}</style> <circle cx="25" cy="25"
  2950.                 r="24.5" stroke="#b2b2b2" stroke-width="1.5" fill="#FFFFFF08"
  2951.                 style="
  2952.  
  2953.                 transform: rotate(-90deg); transform-origin: 50% 50%;" />
  2954.  
  2955.                 <text x="50%" y="54%" fill="#8d8e90" font-size="11"
  2956.                 text-anchor="middle" alignment-baseline="middle"
  2957.                 dominant-baseline="middle">${temp}°</text></svg>`; } ]]]
  2958.             show_entity_picture: true
  2959.             styles:
  2960.               card:
  2961.                 - font-family: Sf Display
  2962.                 - border-radius: var(--custom-button-card-border-radius)
  2963.                 - '-webkit-tap-highlight-color': rgba(0,0,0,0)
  2964.                 - transition: none
  2965.                 - padding: 10%
  2966.               grid:
  2967.                 - grid-template-areas: '"i" "n" "s"'
  2968.                 - grid-template-columns: 1fr
  2969.                 - grid-template-rows: 1fr min-content min-content
  2970.               name:
  2971.                 - justify-self: start
  2972.                 - padding-left: 7px
  2973.                 - font-weight: bold
  2974.                 - font-family: SF Display
  2975.                 - font-size: 14px
  2976.               img_cell:
  2977.                 - justify-content: start
  2978.                 - padding-left: 5px
  2979.                 - padding-top: 10px
  2980.                 - align-items: start
  2981.                 - margin: none
  2982.               state:
  2983.                 - justify-self: start
  2984.                 - font-color: red
  2985.                 - padding-left: 7px
  2986.                 - padding-bottom: 10px
  2987.                 - text-transform: capitalize
  2988.                 - font-family: SF Display
  2989.                 - font-size: 10px
  2990.               icon:
  2991.                 - width: 40%
  2992.               custom_fields:
  2993.                 Temperature:
  2994.                   - align-self: start
  2995.                   - position: absolute
  2996.                   - left: 55%
  2997.                   - top: 10%
  2998.                   - width: 40%
  2999.                   - font-size: 18px
  3000.                   - font-weight: 900
  3001.                   - font-family: SF Display
  3002.                   - text-transform: capitalize
  3003.             state:
  3004.               - value: heat
  3005.                 entity_picture: \local\img\icons8-heizkörper-48.png
  3006.                 color: rgba(255,255,255,0.9)
  3007.               - value: 'off'
  3008.                 entity_picture: \local\img\icons8-heizkörper-48.png
  3009.                 color: rgba(65,65,63,0.8)
  3010.                 styles:
  3011.                   card:
  3012.                     - filter: opacity(50%)
  3013.                   icon:
  3014.                     - filter: grayscale(100%)
  3015.         title: Heizung
  3016.         columns: 2
  3017.         view_layout:
  3018.           grid-area: heizung
  3019.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement