Skeem

CellarTracker Lovelace

Aug 23rd, 2021 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.23 KB | None | 0 0
  1. # the following names can be used for "data" below: 'count', 'type', 'country', "region", "vintage", "varietal", "wine", "beginconsume", "endconsume","score","size","price"
  2.  
  3.   - title: Vin
  4.     icon: mdi:glass-wine #mdi:bottle-wine
  5.     panel: true
  6.     cards:
  7.       - type: vertical-stack
  8.         cards:
  9.           - type: markdown
  10.             content: >
  11.                <table width="100%">
  12.                 <tr><td><font size="5"><center>Vin, øl og spiritus. {{states("sensor.cellar_tracker_total_bottles")}} flasker ialt</center></font></td></tr>
  13.                 </table>
  14.  
  15.           - type: custom:layout-card
  16.             layout_type: custom:grid-layout
  17.             layout:
  18.                 grid-template-columns: auto 210px 210px 210px auto
  19.                 grid-template-rows: auto
  20.                 grid-template-gap: 25px
  21.                 max_cols: 5
  22.             cards:  
  23.  
  24.                 - type: custom:gap-card
  25.  
  26.                 - type: custom:vertical-stack-in-card
  27.                   #title: My Card
  28.                   cards:
  29.                     - type: picture
  30.                       image: /local/vin/rodvin.png
  31.                       tap_action:
  32.                         action: call-service
  33.                         service: script.wine_red
  34.    
  35.                     - type: markdown
  36.                       content: >
  37.                        <table width="100%">
  38.                         <tr><td><font size="5"><center>{{states("sensor.antalrodvin")}} flasker</center></font></td></tr>
  39.                         </table>
  40.                
  41.                 - type: custom:vertical-stack-in-card
  42.                   #title: My Card
  43.                   cards:
  44.                     - type: picture
  45.                       image: /local/vin/hvidvin.png
  46.                       tap_action:
  47.                         action: call-service
  48.                         service: script.wine_white
  49.    
  50.                     - type: markdown
  51.                       content: >
  52.                        <table width="100%">
  53.                         <tr><td><font size="5"><center>{{states("sensor.antalhvidvin")}} flasker</center></font></td></tr>
  54.                         </table>
  55.                
  56.                 - type: custom:vertical-stack-in-card
  57.                   #title: My Card
  58.                   cards:
  59.                     - type: picture
  60.                       image: /local/vin/rosevin.png
  61.                       tap_action:
  62.                         action: call-service
  63.                         service: script.wine_rose
  64.    
  65.                     - type: markdown
  66.                       content: >
  67.                        <table width="100%">
  68.                         <tr><td><font size="5"><center>{{states("sensor.antalrosevin")}} flasker</center></font></td></tr>
  69.                         </table>
  70.  
  71.                 - type: custom:gap-card
  72.  
  73.                 - type: custom:gap-card
  74.  
  75.        
  76.                 - type: custom:vertical-stack-in-card
  77.                   #title: My Card
  78.                   cards:
  79.                     - type: picture
  80.                       image: /local/vin/mousserende.png
  81.                       tap_action:
  82.                         action: call-service
  83.                         service: script.wine_sparkling
  84.    
  85.                     - type: markdown
  86.                       content: >
  87.                        <table width="100%">
  88.                         <tr><td><font size="5"><center>{{states("sensor.antalmousserende")}} flasker</center></font></td></tr>
  89.                         </table>
  90.  
  91.                 - type: custom:vertical-stack-in-card
  92.                   #title: My Card
  93.                   cards:
  94.                     - type: picture
  95.                       image: /local/vin/dessertvin.png
  96.                       tap_action:
  97.                         action: call-service
  98.                         service: script.wine_dessert
  99.    
  100.                     - type: markdown
  101.                       content: >
  102.                        <table width="100%">
  103.                         <tr><td><font size="5"><center>{{states("sensor.antaldessert")}} flasker</center></font></td></tr>
  104.                         </table>
  105.    
  106.                 - type: custom:vertical-stack-in-card
  107.                   #title: My Card
  108.                   cards:
  109.                     - type: picture
  110.                       image: /local/vin/andet.png
  111.                       tap_action:
  112.                         action: call-service
  113.                         service: script.wine_other
  114.    
  115.                     - type: markdown
  116.                       content: >
  117.                        <table width="100%">
  118.                         <tr><td><font size="5"><center>{{states("sensor.antalandre")}} flasker</center></font></td></tr>
  119.                         </table>
  120.  
  121.                 - type: custom:gap-card
  122.            
  123.  
  124.  
  125. #Types defined by CellarTracker are divided as follows:
  126. #Rød:
  127. #-Red
  128.  
  129. #Hvid:
  130. #-White
  131.  
  132. #Rosé:
  133. #-Rosé
  134.  
  135. #Mousserende:
  136. #-Blue - Sparkling
  137. #-Orange - Sparkling
  138. #-Red - Sparkling
  139. #-White - Sparkling
  140. #-Rosé - Sparkling
  141.  
  142. #Dessert:
  143. #-Red - Fortified
  144. #-Red - Sweet/Dessert
  145. #-Rosé - Fortified
  146. #-Rosé - Sweet/Dessert
  147. #-White - Sweet/Dessert
  148. #-White - Fortified
  149.  
  150. #Andre:
  151. #-Beer
  152. #-Blue
  153. #-Fruit/Vegetable Wine
  154. #-Non-Alcoholic
  155. #-Orange
  156. #-Sake
  157. #-Spirits
Add Comment
Please, Sign In to add comment