Guest User

Untitled

a guest
Oct 29th, 2025
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. type: custom:apexcharts-card
  2. experimental:
  3. color_threshold: true
  4. header:
  5. show: true
  6. title: NordPool electricity prices (today/tomorrow)
  7. show_states: true
  8. colorize_states: true
  9. graph_span: 48h
  10. span:
  11. end: day
  12. offset: +1d
  13. now:
  14. show: true
  15. label: Now
  16. series:
  17. - entity: sensor.electricity_prices
  18. type: column
  19. show:
  20. extremas: true
  21. in_header: before_now
  22. float_precision: 3
  23. data_generator: |
  24. return entity.attributes.data.map((start, index) => {
  25. return [new Date(start["start"]).getTime(), entity.attributes.data[index]["price"]];
  26. });
  27. color_threshold:
  28. - value: 0
  29. color: green
  30. - value: 10
  31. color: orange
  32. - value: 30
  33. color: red
  34. - entity: sensor.energy_balance_current_hour
  35. yaxis_id: second
  36. name: Power from grid
  37. type: line
  38. float_precision: 2
  39. stroke_width: 2
  40. opacity: 1
  41. color: blue
  42. extend_to: false
  43. show:
  44. in_header: true
  45. legend_value: false
  46. group_by:
  47. func: max
  48. - entity: sensor.hourly_energy_produced_kwh
  49. yaxis_id: second
  50. name: Energy produced
  51. type: line
  52. float_precision: 2
  53. stroke_width: 2
  54. opacity: 1
  55. color: yellow
  56. extend_to: false
  57. show:
  58. in_header: true
  59. legend_value: false
  60. group_by:
  61. func: max
  62.  
Advertisement
Add Comment
Please, Sign In to add comment