card-config.yml 889 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. type: custom:apexcharts-card
  2. update_interval: 5m
  3. graph_span: 24h
  4. span:
  5. start: day
  6. now:
  7. show: true
  8. label: nu
  9. header:
  10. show: true
  11. show_states: true
  12. colorize_states: true
  13. title: Stroomprijs vandaag
  14. experimental:
  15. color_threshold: true
  16. series:
  17. - entity: sensor.average_electricity_price_today
  18. stroke_width: 2
  19. float_precision: 3
  20. type: column
  21. opacity: 1
  22. color_threshold:
  23. - value: -10
  24. color: '#000fff'
  25. - value: 0
  26. color: '#00ffd5'
  27. - value: 0.1
  28. color: '#ffff00'
  29. - value: 0.2
  30. color: '#ff8000'
  31. - value: 0.3
  32. color: '#ff2a00'
  33. - value: 1
  34. color: '#ff00d4'
  35. - value: 2
  36. color: '#5000ff'
  37. data_generator: |
  38. return entity.attributes.prices.map((record, index) => {
  39. return [record.time, record.price];
  40. });
  41. yaxis:
  42. - id: Prijs
  43. decimals: 2
  44. min: 0