Advertisement
Guest User

test

a guest
Jul 23rd, 2022
1,357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. type: custom:vertical-stack-in-card
  2. title: Dagens Timpris
  3. style: |
  4. ha-card {
  5. box-shadow: 2px;
  6. background: transparent:
  7. margin: 15px:
  8. }
  9. cards:
  10. - type: custom:apexcharts-card
  11. now:
  12. show: true
  13. label: JUST NU
  14. graph_span: 24h
  15. apex_config:
  16. chart:
  17. height: 300px
  18. legend:
  19. showForSingleSeries: true
  20. plotOptions:
  21. bar:
  22. borderRadius: 2
  23. yaxis:
  24. min: 0
  25. max: 3.5
  26. decimalsInFloat: 2
  27. tickAmount: 10
  28. forceNiceScale: true
  29. xaxis:
  30. labels:
  31. datetimeFormatter:
  32. hour: HH
  33. all_series_config:
  34. show:
  35. offset_in_name: false
  36. header:
  37. title: ' '
  38. show: true
  39. show_states: true
  40. colorize_states: true
  41. span:
  42. start: day
  43. offset: +0h
  44. series:
  45. - entity: sensor.nordpool_kwh_se3_sek_3_10_025_med_moms
  46. type: column
  47. color: orange
  48. float_precision: 2
  49. stroke_width: 2
  50. name: Dagens timpris
  51. show:
  52. in_header: false
  53. legend_value: false
  54. extremas: true
  55. data_generator: |
  56. return entity.attributes.raw_today.map((start, index) => {
  57. return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
  58. });
  59. - entity: sensor.nordpool_kwh_se3_sek_3_10_025_med_moms
  60. name: Timpris just nu
  61. color: orange
  62. type: column
  63. show:
  64. in_chart: false
  65. float_precision: 2
  66. - entity: sensor.nordpool_kwh_se3_sek_3_10_025_med_moms
  67. attribute: average
  68. type: column
  69. color: white
  70. float_precision: 2
  71. stroke_width: 2
  72. name: Dagens Snittpris
  73. group_by:
  74. duration: 1d
  75. show:
  76. in_chart: false
  77. legend_value: false
  78. - entity: sensor.nordpool_kwh_se3_sek_3_10_025_med_moms
  79. attribute: max
  80. type: column
  81. color: red
  82. float_precision: 2
  83. stroke_width: 2
  84. name: Dagens högsta pris
  85. group_by:
  86. duration: 1d
  87. show:
  88. in_chart: false
  89. legend_value: false
  90. - entity: sensor.nordpool_kwh_se3_sek_3_10_025_med_moms
  91. attribute: min
  92. type: column
  93. color: green
  94. float_precision: 2
  95. stroke_width: 2
  96. name: Dagens lägsta pris
  97. group_by:
  98. duration: 1d
  99. show:
  100. in_chart: false
  101. legend_value: false
  102.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement