-
Notifications
You must be signed in to change notification settings - Fork 0
/
energy_solar_today_vs_yesterday_vs_prediction_card.yaml
72 lines (72 loc) · 1.72 KB
/
energy_solar_today_vs_yesterday_vs_prediction_card.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
type: custom:config-template-card
entities:
- sensor.sun_next_setting
- sensor.sun_next_noon
- sensor.sun_next_rising
- sensor.envoy_122217065650_current_power_production
- sensor.power_production_now
card:
type: custom:apexcharts-card
header:
title: Solar generation today
span:
start: day
graph_span: 24h
update_interval: 10mins
all_series_config:
type: area
group_by:
func: avg
duration: 10mins
color_list:
- yellow
- orange
- blue
series:
- entity: sensor.envoy_122217065650_current_power_production
name: Vandaag
type: line
opacity: 1
stroke_width: 2
- entity: sensor.envoy_122217065650_current_power_production
name: Gisteren
offset: '-24h'
type: line
opacity: 1
stroke_width: 2
show:
in_header: true
- entity: sensor.power_production_now
name: Voorspelling
type: line
opacity: 1
stroke_width: 2
show:
in_header: false
apex_config:
yaxis:
min: 0
forceNiceScale: true
decimalsInFloat: false
annotations:
xaxis:
- x: ${new Date(states['sensor.sun_next_rising'].state).getTime()}
label:
text: Sunrise ☀️
borderWidth: 0
style:
background: '#0000'
- x: ${new Date(states['sensor.sun_next_noon'].state).getTime()}
label:
text: 😎
borderWidth: 0
style:
background: '#0000'
- x: ${new Date(states['sensor.sun_next_setting'].state).getTime()}
label:
text: Sunset 🌙
borderWidth: 0
style:
background: '#0000'
chart:
height: 150