I try to extremas working.
Tried to adjust the datagenerator as described in: Hourly electricity prices Netherlands - #18 by duittenb
type: custom:apexcharts-card
graph_span: 33h
span:
start: hour
yaxis:
- id: first
header:
show: true
title: Test extremas
series:
- entity: sensor.electricityprice_by_hour_2
type: column
show:
extremas: true
data_generator: |
return entity.attributes.hourly.map((record, index) => {
return [new Date(record.date).GetTime(), 100 * record.price];
})
With this config no graph appears.
The config before I did adjust it according the before mentioned forum post gave a graph.
type: custom:apexcharts-card
graph_span: 33h
span:
start: hour
yaxis:
- id: first
header:
show: true
title: Test extremas
series:
- entity: sensor.electricityprice_by_hour_2
type: column
data_generator: |
return entity.attributes.hourly.map((record, index) => {
return [record.date, 100 * record.price];
})
What am I missing?