-
Notifications
You must be signed in to change notification settings - Fork 2
/
15min_interval_input.yaml
96 lines (90 loc) · 1.89 KB
/
15min_interval_input.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
type: custom:apexcharts-card
card_mod:
style: |
ha-card {
overflow:visible !important;
}
ha-card .apexcharts-tooltip{
border-radius: 0px;
border: 0 !important;
box-shadow: unset;
}
ha-card .apexcharts-legend{
display: none;
}
apex_config:
yaxis:
tickAmount: 3
decimalsInFloat: 2
floating: true
labels:
show: true
offsetX: 31
offsetY: -6
tooltip:
x:
formatter: |
EVAL: function (value, timestamp) {
var ttime = new Date(value)
var result = new Date(ttime.setDate(ttime.getDate() - 1))
const weekday = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
day = weekday[ttime.getDay()]
var hours = ('0' + ttime.getHours().toString()).slice(-2)
var minutes = ('0' + ttime.getMinutes().toString()).slice(-2)
return day +", "+ hours +":"+ minutes;
}
enabled: true
fixed:
enabled: true
position: topleft
offsetY: 180
items:
display: flex
plotOptions:
bar:
columnWidth: 90%
stroke:
colors: transperent
xaxis:
tooltip:
enabled: false
floating: true
labels:
show: false
axisTicks:
show: false
axisBorder:
show: false
grid:
strokeDashArray: 2
borderColor: '#666666'
padding:
left: 0
right: 0
chart:
height: 180px
animations:
enabled: false
graph_span: 24h
update_interval: 15min
show:
loading: false
hours_12: false
cache: true
span:
end: hour
offset: '-15min'
color_list:
- var(--paper-item-icon-active-color)
series:
- entity: sensor.mojelektro_15min_input
name: 15 min interval
type: column
float_precision: 3
show:
legend_value: true
offset_in_name: false
group_by:
fill: zero
func: last
duration: 15min