Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:apexcharts-card
- header:
- title: Electricity average and hourly price for 48hrs
- show: true
- show_states: false
- graph_span: 2d
- span:
- start: day
- update_interval: 30min
- now:
- show: true
- label: Now
- apex_config:
- grid:
- show: true
- legend:
- show: false
- experimental:
- color_threshold: true
- yaxis:
- - id: price_chart
- min: ~0
- opposite: true
- decimals: 3
- apex_config:
- tickAmount: 10
- labels:
- formatter: |
- EVAL:v => `c ${v.toFixed(2)}`
- - id: average
- min: 0
- apex_config:
- tickAmount: 10
- labels:
- formatter: |
- EVAL:v => `${v.toFixed(2)} c`
- series:
- - entity: sensor.nordpool_kwh_fi_eur_3_095_024
- yaxis_id: price_chart
- type: column
- unit: Cent
- float_precision: 3
- color_threshold:
- - value: 0
- color: green
- - value: 20
- color: orange
- - value: 35
- color: red
- data_generator: |
- return entity.attributes.raw_today.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
- });
- extend_to: false
- - entity: sensor.nordpool_kwh_fi_eur_3_095_024
- yaxis_id: price_chart
- type: column
- unit: Cent
- float_precision: 3
- color_threshold:
- - value: 0
- color: green
- - value: 20
- color: orange
- - value: 35
- color: red
- data_generator: |
- return entity.attributes.raw_tomorrow.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];
- });
- - entity: sensor.nordpool_kwh_fi_eur_3_095_024
- attribute: average
- yaxis_id: average
- type: line
- view_layout:
- position: main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement