Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:apexcharts-card
- graph_span: 24h
- experimental:
- color_threshold: true
- header:
- title: Strømpriser 24h (kr/kWh)
- show: false
- apex_config:
- yaxis:
- min: 0
- max: 3
- hours_12: false
- span:
- start: hour
- offset: '-1h'
- now:
- show: true
- label: Nu
- series:
- - entity: sensor.nordpool_kwh_dk1_dkk_3_10_0
- type: column
- data_generator: |
- return (entity.attributes.raw_today.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
- })).concat(entity.attributes.raw_tomorrow.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];
- }));
- color_threshold:
- - value: 0
- color: green
- - value: 1
- color: orange
- - value: 2
- color: red
- - value: 3
- color: darkred
- - value: 4
- color: black
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement