Advertisement
RichardHA

Homeassistant entso-E vandaag

Dec 12th, 2024
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.48 KB | None | 0 0
  1. type: custom:apexcharts-card
  2. graph_span: 24h
  3. update_interval: 5m
  4. span:
  5.   start: day
  6. show:
  7.   last_updated: false
  8.   legend: false
  9. now:
  10.   show: true
  11.   label: Now
  12.   color: yellow
  13. header:
  14.   show: true
  15.   title: Electriciteitsprijzen Vandaag (€/kwh)
  16.   show_states: true
  17.   colorize_states: true
  18. yaxis:
  19.   - id: Prijs
  20.     decimals: 2
  21. experimental:
  22.   color_threshold: true
  23.   disable_config_validation: true
  24. series:
  25.   - entity: sensor.entso_e_average_electricity_price
  26.     show:
  27.       datalabels: false
  28.       extremas: true
  29.       in_header: before_now
  30.     name: Energy Price net
  31.     stroke_width: 0
  32.     float_precision: 3
  33.     type: column
  34.     opacity: 0.7
  35.     color: yellow
  36.     data_generator: |
  37.      return entity.attributes.prices.map((entry) => {
  38.       return [new Date(entry.time), entry.price];
  39.       });
  40.   - entity: sensor.entso_e_average_electricity_price
  41.     name: Energy Price incl costs
  42.     show:
  43.       datalabels: false
  44.       extremas: true
  45.       in_header: before_now
  46.     stroke_width: 0
  47.     float_precision: 3
  48.     type: column
  49.     opacity: 0.7
  50.     color_threshold:
  51.       - value: 0
  52.         color: lightblue
  53.       - value: 0.15
  54.         color: lightgreen
  55.       - value: 0.2
  56.         color: darkgreen
  57.       - value: 0.3
  58.         color: orange
  59.       - value: 0.35
  60.         color: red
  61.     data_generator: |
  62.      return entity.attributes.prices.map((entry) => {
  63.       return [new Date(entry.time), (entry.price + 0.10880 +0.02481)*1.21];
  64.       });
  65.  
Tags: Entso
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement