Advertisement
fablav

card data - ora con secondi - meteo

Sep 9th, 2024 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.39 KB | Software | 0 0
  1. type: custom:layout-card
  2. layout_type: custom:grid-layout
  3. layout:
  4.   margin: 0px 0px 0px 0px
  5.   grid-template-columns: 1fr
  6.   grid-template-rows: min-content min-content min-content
  7.   grid-template-areas: |
  8.    "data" "ora" "meteo"
  9. cards:
  10.   - type: custom:button-card
  11.     entity: sensor.pretty_date
  12.     show_name: false
  13.     show_state: true
  14.     show_icon: false
  15.     styles:
  16.       card:
  17.         - background: none
  18.         - padding: 0px
  19.         - border: none
  20.         - justify-self: center
  21.         - font-size: 18px
  22.         - font-weight: 300
  23.       state:
  24.         - justify-self: center
  25.         - font-size: 120%
  26.         - font-weight: 500
  27.     view_layout:
  28.       grid-area: data
  29.   - type: custom:mod-card
  30.     view_layout:
  31.       grid-area: ora
  32.     card:
  33.       type: custom:simple-clock-card
  34.     card_mod:
  35.       style: |
  36.        ha-card {
  37.           height: 2px !important;
  38.         }
  39.         div {
  40.           padding: 0px !important;
  41.           font-size: 2.3rem !important;
  42.           font-weight: 800 !important;
  43.         }
  44.   - type: custom:button-card
  45.     entity: sensor.meteo
  46.     show_icon: false
  47.     show_name: false
  48.     show_state: true
  49.     styles:
  50.       card:
  51.         - background: none
  52.         - padding-bottom: 0px
  53.       state:
  54.         - justify-self: center
  55.         - text-transform: capitalize
  56.         - color: var(--paper-item-icon-active-color)
  57.     view_layout: meteo
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement