Advertisement
TBnt

02_temperature.yaml

Jul 21st, 2021
2,536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.53 KB | None | 0 0
  1.  - title: temperature
  2.     icon: 'mdi:thermometer'
  3.     path: temperature
  4.     cards:
  5.       - cards:
  6.           - cards:
  7.               - template: bordures
  8.                 type: 'custom:button-card'
  9.               - template: return_button
  10.                 type: 'custom:button-card'
  11.               - template: pilule_temperature
  12.                 type: 'custom:button-card'
  13.               - template: bordures
  14.                 type: 'custom:button-card'
  15.             type: horizontal-stack
  16.           - type: 'custom:button-card'
  17.             name: Températures
  18.             template: titre
  19.           - cards:
  20.               - template: bordures
  21.                 type: 'custom:button-card'
  22.               - type: weather-forecast
  23.                 style: |
  24.                  ha-card {
  25.                     box-shadow: var(--box-shadow);
  26.                     border-radius: 20px;
  27.                     padding: 12px !important;
  28.                   }
  29.                   .icon-image{
  30.                     min-width: 42px !important;
  31.                     margin-right: 12px !important;
  32.                   }
  33.                   .icon-image > *{
  34.                     height: 42px !important;
  35.                     width: 42px;
  36.                     flex: 0 0 42px !important;
  37.                   }
  38.                   .state {
  39.                     font-size: 14px !important;
  40.                     font-weight: bold;
  41.                   }
  42.                   .name{
  43.                     font-weight: bolder;
  44.                     font-size: 12px !important;
  45.                     filter: opacity(40%);
  46.                     color: #333333 !important;
  47.                   }
  48.                   .temp{
  49.                     font-size: 14px !important;
  50.                     font-weight: bold;
  51.                     margin-right: 14px !important;
  52.                   }
  53.                   .attribute{
  54.                     font-size: 12px !important;
  55.                     font-weight: bolder;
  56.                     filter: opacity(40%);
  57.                     color: #333333 !important;
  58.                   }
  59.                   span{
  60.                     font-size: 14px !important;
  61.                     font-weight: bold;
  62.                   }
  63.                 entity: weather.dark_sky
  64.                 show_forecast : false
  65.                 name: Toulouse
  66.               - template: bordures
  67.                 type: 'custom:button-card'
  68.             type: horizontal-stack
  69.           - type: 'custom:button-card'
  70.             label: 'Intérieur'
  71.             template: titre
  72.            
  73.           - cards:
  74.               - template: bordures
  75.                 type: 'custom:button-card'
  76.               - type: grid
  77.                 columns: 2
  78.                 square: false
  79.                 cards:
  80.                   - type: 'custom:button-card'
  81.                     template: graph
  82.                     variables:
  83.                       entity: "sensor.fibaro_multisensor_salon_temperature"
  84.                       color: "var(--google-blue-500)"
  85.                       name: "Température"
  86.                   - type: 'custom:button-card'
  87.                     template: graph
  88.                     variables:
  89.                       entity: "sensor.fibaro_multisensor_salon_luminosite"
  90.                       color: "var(--google-blue-500)"
  91.                       name: "Luminosité"
  92.                   - type: 'custom:button-card'
  93.                     template: graph
  94.                     variables:
  95.                       entity: "sensor.xiaomi_multisensor_salon_humidite"
  96.                       color: "var(--google-blue-500)"
  97.                       name: "Humidité"
  98.    
  99.                   - type: 'custom:button-card'
  100.                     template: graph
  101.                     variables:
  102.                       entity: "sensor.xiaomi_multisensor_salon_pression"
  103.                       color: "var(--google-blue-500)"
  104.                       name: "Pression"
  105.               - template: bordures
  106.                 type: 'custom:button-card'
  107.             type: horizontal-stack
  108.  
  109.           - type: 'custom:button-card'
  110.             label: 'Extérieur'
  111.             template: titre
  112.  
  113.           - cards:
  114.               - template: bordures
  115.                 type: 'custom:button-card'
  116.               - type: grid
  117.                 columns: 2
  118.                 square: false
  119.                 cards:
  120.                   - type: 'custom:button-card'
  121.                     template: graph
  122.                     variables:
  123.                       entity: "sensor.fibaro_multisensor_balcon_temperature"
  124.                       color: "var(--google-green-500)"
  125.                       name: "Température"
  126.    
  127.                   - type: 'custom:button-card'
  128.                     template: graph
  129.                     variables:
  130.                       entity: "sensor.fibaro_multisensor_balcon_luminosite"
  131.                       color: "var(--google-green-500)"
  132.                       name: "Luminosité"
  133.               - template: bordures
  134.                 type: 'custom:button-card'
  135.             type: horizontal-stack
  136.  
  137.           - type: 'custom:button-card'
  138.             name: Thermostat
  139.             template: titre
  140.           - cards:
  141.               - template: bordures
  142.                 type: 'custom:button-card'
  143.               - type: 'custom:button-card'
  144.                 styles:
  145.                   card:
  146.                     - border-radius: 20px
  147.                     - box-shadow: var(--box-shadow)
  148.                     - padding: 0px
  149.                   grid:
  150.                     - grid-template-areas: '"item1" "item2"'
  151.                     - grid-template-columns: 1fr
  152.                     - grid-template-rows: min-content  min-content
  153.                     - row-gap: 12px
  154.                 custom_fields:
  155.                   item1:
  156.                     card:
  157.                       entity: sensor.fibaro_multisensor_salon_temperature
  158.                       name: Température
  159.                       template:
  160.                         - icon_info
  161.                         - generique
  162.                       styles:
  163.                         card:
  164.                           - margin-left: 12px
  165.                           - margin-top: 12px
  166.                       type: 'custom:button-card'
  167.                   item2:
  168.                     card:
  169.                       type: 'custom:mini-graph-card'
  170.                       name: Appartement
  171.                       hours_to_show: 24
  172.                       points_per_hour: 60
  173.                       height: 150
  174.                       tap_action:
  175.                         action: more-info
  176.                         entity: climate.thermostat
  177.                       hour24: true
  178.                       show:
  179.                         name: false
  180.                         icon: false
  181.                         legend: false
  182.                         state: false
  183.                       entities:
  184.                         - entity: sensor.fibaro_multisensor_salon_temperature
  185.                           name: Intérieure
  186.                           show_fill: true
  187.                         - entity: sensor.climate_temperature_cible
  188.                           name: Cible
  189.                           show_fill: false
  190.                         - entity: sensor.climate_temperature_heating
  191.                           name: Chauffe
  192.                           show_fill: true
  193.                           show_line: false
  194.                           show_points: false
  195.                       line_color:
  196.                        - var(--google-blue-500)
  197.                         - var(--google-red-500)
  198.                         - var(--google-red-500)
  199.                       line_width: 2
  200.                       style: |
  201.                        ha-card {
  202.                           box-shadow: none;
  203.                           border-radius: var(--border-radius);
  204.                         }
  205.               - template: bordures
  206.                 type: 'custom:button-card'
  207.             type: horizontal-stack
  208.  
  209.           - cards:
  210.               - template: bordures
  211.                 type: 'custom:button-card'
  212.               - entity: climate.thermostat
  213.                 tap_action:
  214.                     action: more-info
  215.                     entity: group.thermostat_detail
  216.                 template:
  217.                   - icon_info_bg
  218.                   - thermostat
  219.                 type: 'custom:button-card'
  220.               - entity: light.qubino
  221.                 template:
  222.                   - icon_info_bg
  223.                   - qubino
  224.                 type: 'custom:button-card'
  225.               - template: bordures
  226.                 type: 'custom:button-card'
  227.             type: horizontal-stack
  228.         type: vertical-stack
  229.  
  230.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement