Advertisement
TBnt

03_consommation.yaml

Jul 21st, 2021
1,476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.75 KB | None | 0 0
  1.  - title: Consommation
  2.     icon: 'mdi:flash'
  3.     path: consommation
  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_consommation_prix
  12.                 type: 'custom:button-card'
  13.               - template: bordures
  14.                 type: 'custom:button-card'
  15.             type: horizontal-stack
  16.           - type: 'custom:button-card'
  17.             name: Consommation
  18.             template: titre
  19.  
  20.           - cards:
  21.               - template: bordures
  22.                 type: 'custom:button-card'
  23.  
  24.               - type: 'custom:button-card'
  25.                 template: graph
  26.                 variables:
  27.                   entity: "sensor.atome_price_conso_today"
  28.                   color: "var(--google-blue-500)"
  29.                   name: "Aujourd'hui"
  30.                 custom_fields:
  31.                   item1:
  32.                     card:
  33.                       icon: mdi:flash
  34.                   item2:
  35.                     card:
  36.                       bar_spacing: 30
  37.                       show:
  38.                         graph: bar
  39.                       aggregate_func: max
  40.                       group_by: date
  41.                       lower_bound: 0
  42.                       hours_to_show: 168
  43.  
  44.               - type: 'custom:button-card'
  45.                 template: graph
  46.                 variables:
  47.                   entity: "sensor.atome_live_power"
  48.                   color: "var(--google-blue-500)"
  49.                   name: "Direct"
  50.                 custom_fields:
  51.                   item2:
  52.                     card:
  53.                       show:
  54.                         graph: bar
  55.                       hours_to_show: 24
  56.                       # points_per_hour: 4
  57.                       hour24: true
  58.                       line_width: 1
  59.                       points_per_hour: 60
  60.                       aggregate_func: 'max'
  61.                       lower_bound: 0
  62.                      
  63.               - template: bordures
  64.                 type: 'custom:button-card'
  65.             type: horizontal-stack
  66.  
  67.           - type: 'custom:button-card'
  68.             name: Batterie
  69.             template: titre
  70.  
  71.           - cards:
  72.               - template: bordures
  73.                 type: 'custom:button-card'
  74.               - type: grid
  75.                 columns: 2
  76.                 square: false
  77.                 cards:
  78.                   - entity: sensor.xiaomi_ouverture_fenetre_balcon_batterie
  79.                     name: Ouverture balcon
  80.                     template:
  81.                       - icon_info_bg
  82.                       - generique
  83.                     type: 'custom:button-card'
  84.                   - entity: sensor.xiaomi_ouverture_fenetre_chambre_batterie
  85.                     name: Ouverture chambre
  86.                     template:
  87.                       - icon_info_bg
  88.                       - generique
  89.                     type: 'custom:button-card'
  90.                   - entity: sensor.fibaro_multisensor_couloir_battery_level
  91.                     name: Capteur couloir
  92.                     template:
  93.                       - icon_info_bg
  94.                       - generique
  95.                     type: 'custom:button-card'
  96.                   - entity: sensor.xiaomi_multisensor_salon_batterie
  97.                     name: Capteur chambre
  98.                     template:
  99.                       - icon_info_bg
  100.                       - generique
  101.                     type: 'custom:button-card'
  102.                   - entity: sensor.fibaro_multisensor_balcon_battery_level
  103.                     name: Capteur balcon
  104.                     template:
  105.                       - icon_info_bg
  106.                       - generique
  107.                     type: 'custom:button-card'
  108.                   - entity: sensor.ikea_variateur_salle_de_bain_power
  109.                     name: Variateur salle de bain
  110.                     template:
  111.                       - icon_info_bg
  112.                       - generique
  113.                     type: 'custom:button-card'
  114.                   - entity: sensor.xiaomi_ouverture_fenetre_balcon_batterie
  115.                     name: Ouverture balcon
  116.                     template:
  117.                       - icon_info_bg
  118.                       - generique
  119.                     type: 'custom:button-card'
  120.                   - entity: sensor.xiaomi_ouverture_fenetre_chambre_batterie
  121.                     name: Ouverture chambre
  122.                     template:
  123.                       - icon_info_bg
  124.                       - generique
  125.                     type: 'custom:button-card'
  126.               - template: bordures
  127.                 type: 'custom:button-card'
  128.             type: horizontal-stack
  129.         type: vertical-stack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement