Advertisement
fablav

re inquisito card

Sep 17th, 2024 (edited)
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.51 KB | Software | 0 0
  1. type: custom:button-card
  2. entity: binary_sensor.run_pompa_acs
  3. color_type: card
  4. color: rgb(66, 134, 244)
  5. name: Acs
  6. custom_fields:
  7.   batteria: |
  8.    [[[
  9.       return `${states['sensor.energia_consumo_kwh_pompa_acs_oggi'].state}<br>kwh`
  10.     ]]]
  11.   t_alta: |
  12.    [[[
  13.       return `${states['sensor.acs_temp_alta'].state}°`
  14.     ]]]    
  15.   t_bassa: |
  16.    [[[
  17.       return `${states['sensor.acs_temp_bassa'].state}°`
  18.     ]]]        
  19. state:
  20.   - value: 'on'
  21.     color: orange
  22.     icon: mdi:water
  23.   - value: 'off'
  24.     color: lightgreen
  25.     icon: mdi:water-off
  26. styles:
  27.   grid:
  28.     - grid-template-areas: '"t_alta i batteria" "t_bassa i batteria" "n n n"'
  29.     - grid-template-columns: 1fr min-content 1fr
  30.     - grid-template-rows: min-content min-content 1fr
  31.   custom_fields:
  32.     batteria:
  33.       - margin-top: '-5px'
  34.       - margin-right: 20px
  35.       - text-align: end
  36.       - font-size: 18px
  37.       - font-weight: 800
  38.       - color: var(--text-color-sensor)
  39.     t_alta:
  40.       - margin-top: '-5px'
  41.       - margin-left: 20px
  42.       - text-align: start
  43.       - font-size: 18px
  44.       - font-weight: 800
  45.       - color: var(--text-color-sensor)
  46.     t_bassa:
  47.       - margin-top: '-5px'
  48.       - margin-left: 20px
  49.       - text-align: start
  50.       - font-size: 18px
  51.       - font-weight: 800
  52.       - color: var(--text-color-sensor)
  53.   name:
  54.     - font-weight: normal
  55.     - font-size: 24px
  56.     - font-weight: 400
  57.   card:
  58.     - font-size: 5px
  59.     - font-weight: bold
  60.   icon:
  61.     - color: green
  62.     - width: 30px
  63.  
Tags: ha
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement