Advertisement
xangin

HA foodpanda markdown card

Feb 21st, 2024
1,044
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.88 KB | None | 0 0
  1. views:
  2.   - title: Home
  3.     type: panel
  4.     path: dummy
  5.     badges: []
  6.     cards:
  7.       - type: markdown
  8.         card_mod:
  9.           style: |
  10.            ha-card {
  11.               box-shadow: none;
  12.               border: 0px;
  13.               font-size: 50px
  14.             }
  15.         content: >
  16.          <center><img src="https://YOUR_HA_DOMAIN/local/tmp/fp_logo.png" width="400"> </center>
  17.           <h1> <center>外送通知</center></h1>
  18.  
  19.   - path: msg
  20.     title: msg
  21.     type: panel
  22.     badges: []
  23.     cards:
  24.       - type: markdown
  25.         card_mod:
  26.           style: |
  27.            ha-card {
  28.               box-shadow: none;
  29.               border: 0px;
  30.               font-size: 50px
  31.             }
  32.         content: >
  33.          <center><img src="https://YOUR_HA_DOMAIN/local/tmp/fp_logo.png" width="400">
  34.           <h3> <center> 已下單{{ state_attr("sensor.foodpanda_orders","restaurant_name") }} </h3>
  35.           <h2> <center> {% if state_attr("sensor.foodpanda_orders","title_summary") != '' %}
  36.               {{ state_attr("sensor.foodpanda_orders","title_summary") }}
  37.             {% else %}
  38.               尚未有資訊
  39.             {% endif %}</h2> </center>
  40.           <h3> <center> 預計{{ state_attr("sensor.foodpanda_orders","eta") }}分送達 </center> </h3>    
  41.  
  42.   - title: DONE
  43.     path: done
  44.     type: panel
  45.     badges: []
  46.     cards:
  47.       - type: markdown
  48.         card_mod:
  49.           style: |
  50.            ha-card {
  51.               box-shadow: none;
  52.               background: #7aeb34;
  53.               border: 0px;
  54.               font-size: 50px
  55.             }
  56.         content: >
  57.          <center><img src="https://YOUR_HA_DOMAIN/local/tmp/fp_logo.png" width="400">
  58.           <h1> <center> <font color="#FFFFFF"> 餐點已經送到1樓囉! </font> </center></h1>
  59.           <h1> <center> <font color="#FFFFFF"> 趕快去拿唷! </font> </center></h1>
  60.  
  61.  
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement