Advertisement
fablav

Alarm card

Jan 10th, 2025
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.66 KB | Software | 0 0
  1. type: alarm-panel
  2. card_icon: mdi:bell
  3. name: Allarme
  4. card_mod:
  5.   style:
  6.     ha-assist-chip$: |
  7.      .label {
  8.         --label-text-font: Montserrat;
  9.         #color: var(--contrast20) !important;
  10.       }
  11.     .: |
  12.      ha-card {
  13.         #border: 3px solid red;
  14.         #height: 335px;
  15.         #width: 250px;
  16.         background: var(--contrast1);
  17.         #padding: 0 15px 0 15px;
  18.         #margin-top: -35px;
  19.         --mdc-theme-primary: white;
  20.       }
  21.       h1.card-header {
  22.         padding: 0 0 5px;
  23.         display: flex;
  24.         flex-direction: column;
  25.         justify-content: center;
  26.         --ha-card-header-font-family: Montserrat;
  27.         --ha-card-header-font-size: 20px;
  28.       }
  29.  
  30.       ha-assist-chip {
  31.           --ha-assist-chip-filled-container-color: var(--alarm-state-color);
  32.           --primary-text-color: red !important;
  33.       }
  34.     "#alarmCode": |
  35.      ha-textfield.undefined {
  36.         display: none;
  37.       }
  38.     "#keypad mwc-button:nth-of-type(12)":
  39.       $: |
  40.        :host {
  41.           height: 60px;
  42.           #width: 100px !important;
  43.          --mdc-theme-primary: rgb(235, 69, 95);
  44.           #background: red;
  45.         }
  46.         button {
  47.           height: 40px !important;
  48.           background: rgba(235, 69, 95, 0.2) !important;
  49.           border-radius: 20px !important;
  50.           #border-color: red !important;
  51.           border: solid 3px !important;
  52.           font-size: 14px !important;
  53.           #--mdc-theme-primary: red;
  54.         }
  55.         .slot-container {
  56.           #color: var(--contrast20) !important;
  57.         }
  58.     "#armActions mwc-button":
  59.       $: |
  60.        :host {
  61.           background: transparent ;
  62.           #--mdc-theme-primary: red;
  63.         }
  64.         button {
  65.           height: 30px !important;
  66.           background: rgb(235, 69, 95) !important;
  67.           font-color: white !important;
  68.           border-radius: 20px !important;
  69.           border-color: red !important;
  70.           #border: solid 3px green !important;
  71.           font-size: 8px !important;
  72.         }
  73.     "#keypad mwc-button:not(:nth-of-type(12),:nth-of-type(10))":
  74.       $: |
  75.        :host {
  76.           height: 50px;
  77.           #width: 70px !important;
  78.           --mdc-theme-primary: rgb(108, 72, 197);
  79.           #background: ;
  80.         }
  81.         button {
  82.           height: 40px !important;
  83.           background: rgba(108, 72, 197,0.2) !important;
  84.           border-radius: 20px !important;
  85.           border-color: blue !important;
  86.           border: solid 4px !important;
  87.           font-size: 20px !important;
  88.         }
  89.         .slot-container {
  90.           color: var(--contrast20) !important;
  91.         }
  92. entity: alarm_control_panel.home
Tags: ha
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement