-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforecast.yaml
47 lines (47 loc) · 1.37 KB
/
forecast.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Requires in Home Assistant:
# apexcharts card - install via HACS
# GivTCP add-on for Givenergy inverter (PV Power entity)
# Solcast integration (today forecast entity)
# This card config will show the solcast solar forecast for today, and slowly fill up with the real PV power as the day progresses.
type: custom:apexcharts-card
update_interval: 1min
apex_config:
chart:
foreColor: rgb(117, 117, 117)
grid:
borderColor: rgb(60, 60, 60)
graph_span: 12h #might need updating as the days get longer
span:
start: day
offset: +6h #might need updating as the days get longer
header:
show: true
title: Solar PV Power Vs Forecast
series:
- entity: sensor.givtcp_[YOUR_INVERTER]_pv_power #use your givtcp pv power entity
color: var(--energy-solar-color)
name: Solar PV
type: area
opacity: 0.4
float_precision: 2
stroke_width: 2
group_by:
func: avg
duration: 30min
fill: zero
extend_to: false
- entity: sensor.solcast_pv_forecast_forecast_today #use the solcast entity for today forecast
unit: W
name: Solcast Forecast
color: rgb(100, 100, 100)
data_generator: |
return entity.attributes.detailedForecast.map((entry) => {
return [new Date(entry.period_start).getTime(), entry.pv_estimate*1000];
});
stroke_width: 3
group_by:
func: max
duration: 30min
yaxis:
- min: 0
decimals: 0