Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:apexcharts-card
- apex_config:
- tooltip:
- x:
- format: ddd kl. HH
- chart:
- height: 220px
- defaultLocale: da
- locales:
- - name: da
- options:
- shortDays:
- - Søn
- - Man
- - Tir
- - Ons
- - Tor
- - Fre
- - Lør
- dataLabels:
- enabled: true
- offsetY: 0
- textAnchor: top
- style:
- fontSize: 6pt
- fontWeight: normal
- colors:
- - '#fff'
- distributed: true
- background:
- enabled: false
- xaxis:
- labels:
- format: HH
- axisBorder:
- show: true
- color: grey
- plotOptions:
- bar:
- dataLabels:
- position: bottom
- maxItems: 32
- hideOverflowingLabels: true
- orientation: vertical
- columnWidth: 90%
- all_series_config:
- unit: ' kr.'
- experimental:
- color_threshold: true
- header:
- title: Tariffer pr. time (kr/kWh)
- show: false
- standard_format: true
- show_states: false
- colorize_states: true
- graph_span: 23h
- stacked: true
- now:
- show: true
- label: Nu
- span:
- start: day
- offset: '-0h'
- yaxis:
- - min: 0
- max: 1.5
- apex_config:
- tickAmount: 5
- series:
- - entity: sensor.energi_data_service
- type: column
- name: Tariffer
- color: orange
- data_generator: |
- var today = entity.attributes.raw_today.map((start, index) => {
- return [new Date(start["hour"]).getTime()+180000, entity.attributes.tariffs.tariffs[index]];
- });
- return today;
- float_precision: 2
- show:
- legend_value: false
- datalabels: true
- color_threshold:
- - value: 0
- color: green
- - value: 0.35
- color: orange
- - value: 0.75
- color: red
- - value: 1.5
- color: darkred
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement