Guest User

YAML Solar Forecast

a guest
Oct 10th, 2025
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. type: custom:apexcharts-card
  2. header:
  3. show: true
  4. title: Vorhersage nächsten 6 Tage
  5. colorize_states: true
  6. apex_config:
  7. chart:
  8. height: 150px
  9. width: 350px
  10. graph_span: 6d
  11. span:
  12. start: day
  13. series:
  14. - entity: sensor.solar_forecast_timeline
  15. name: PV
  16. yaxis_id: kwh
  17. type: column
  18. group_by:
  19. func: last
  20. duration: 1d
  21. show:
  22. datalabels: true
  23. data_generator: |
  24. return [
  25. [moment().add(0, 'days'), entity.attributes.day_0],
  26. [moment().add(1, 'days'), entity.attributes.day_1],
  27. [moment().add(2, 'days'), entity.attributes.day_2],
  28. [moment().add(3, 'days'), entity.attributes.day_3],
  29. [moment().add(4, 'days'), entity.attributes.day_4],
  30. [moment().add(5, 'days'), entity.attributes.day_5],
  31. [moment().add(6, 'days'), entity.attributes.day_6]
  32. ]
Advertisement
Add Comment
Please, Sign In to add comment