Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:apexcharts-card
- experimental:
- color_threshold: true
- header:
- show: true
- title: NordPool electricity prices (today/tomorrow)
- show_states: true
- colorize_states: true
- graph_span: 48h
- span:
- end: day
- offset: +1d
- now:
- show: true
- label: Now
- series:
- - entity: sensor.electricity_prices
- type: column
- show:
- extremas: true
- in_header: before_now
- float_precision: 3
- data_generator: |
- return entity.attributes.data.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.data[index]["price"]];
- });
- color_threshold:
- - value: 0
- color: green
- - value: 10
- color: orange
- - value: 30
- color: red
- - entity: sensor.energy_balance_current_hour
- yaxis_id: second
- name: Power from grid
- type: line
- float_precision: 2
- stroke_width: 2
- opacity: 1
- color: blue
- extend_to: false
- show:
- in_header: true
- legend_value: false
- group_by:
- func: max
- - entity: sensor.hourly_energy_produced_kwh
- yaxis_id: second
- name: Energy produced
- type: line
- float_precision: 2
- stroke_width: 2
- opacity: 1
- color: yellow
- extend_to: false
- show:
- in_header: true
- legend_value: false
- group_by:
- func: max
Advertisement
Add Comment
Please, Sign In to add comment