Kód: Vybrat vše
type: custom:apexcharts-card
header:
show: true
title: Spotřeba/Cena
show_states: true
colorize_states: true
yaxis:
- id: first
decimals: 0
apex_config:
tickAmount: 2
- id: second
opposite: true
decimals: 0
apex_config:
tickAmount: 2
series:
- entity: sensor.active_power
yaxis_id: first
color: green
opacity: 0.7
curve: smooth
stroke_width: 2
type: area
invert: true
- entity: sensor.current_spot_electricity_price
yaxis_id: second
color: red
opacity: 0.7
curve: smooth
update_interval: 30sec