type: custom:apexcharts-card
stacked: true
graph_span: 30d
span:
start: day
offset: "-30d"
show:
last_updated: true
header:
show: true
show_states: true
colorize_states: true
title: 30天电量
yaxis:
- id: first
decimals: 0
apex_config:
tickAmount: 5
min: 0
max: 25
series:
- entity: sensor.history_day
type: column
name: 用电功率
color: rgb(51,153,255)
attribute: history_day_value
data_generator: |
return entity.attributes.history_day_value.map(entry => {
return {
x: entry.date,
y: entry.kwh
};
});
- entity: sensor.shantou_temperature
name: 最高气温
type: line
stroke_width: 2
color: orange
yaxis_id: first
group_by:
func: max
duration: 1d
这个apexcharts-card加了个温度曲线,就显示不了了,百思不得其解
|