Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - title: Strøm
- icon: mdi:home-lightning-bolt
- panel: true
- cards:
- - type: custom:layout-card
- layout_type: custom:grid-layout
- layout:
- grid-template-columns: auto 450px
- grid-template-rows: auto
- grid-template-areas: |
- "c11 c21"
- "c12 c21"
- "c13 c23"
- max_cols: 2
- cards:
- - type: horizontal-stack
- view_layout:
- grid-area: c11
- cards:
- - type: markdown #custom:useful-markdown-card
- content: >
- <table width="100%">
- <tr><td><br>
- <font size="3"><center>Dagens strømudgift<br> </center></font>
- </td></tr>
- <tr><td>
- <font size="5"><center>
- {%- set pris = (states("sensor.price_daily") | float) -%}
- {%- set pris = (pris *100) | int /100 -%}
- Kr {{ pris }}
- </center></font>
- </td></tr>
- </table>
- - type: gauge
- name: Nuværende strømforbrug
- entity: sensor.electricity_meter
- min: 0
- max: 8
- severity:
- green: 0
- yellow: 1
- red: 2
- - type: gauge
- name: Nuværende strømudgift
- min: 0
- max: 15
- unit: "Kr/h"
- entity: sensor.powerprice_rt
- severity:
- green: 0
- yellow: 4
- red: 10
- - type: gauge
- name: Elforbrug for måneden
- entity: sensor.samlet_forbrug_for_maneden_2
- max: 1100
- severity:
- green: 0
- yellow: 825
- red: 900
- - type: 'custom:config-template-card'
- entities:
- - sensor.eloverblik_monthly_statistics
- card:
- type: gauge
- entity: sensor.eloverblik_monthly_statistics
- max: 35
- min: 0
- name: Elforbrug, gns
- severity:
- green: 0
- red: '${states[''sensor.eloverblik_monthly_statistics''].state * 1.1}'
- yellow: '${states[''sensor.eloverblik_monthly_statistics''].state * 1.05}'
- - type: horizontal-stack
- view_layout:
- grid-area: c12
- cards:
- - type: custom:mini-graph-card
- name: Strømforbrug time for time
- hours_to_show: 24
- aggregate_func: diff
- #line_width: 2
- #points_per_hour: 60
- hour24: true
- group_by: hour
- entities:
- - sensor.energy_hourly
- show:
- fill: true
- graph: bar
- labels: true
- legend: true
- color_thresholds:
- - value: 0
- color: rgb(82, 190, 128 )
- - value: 1
- color: rgb(244, 208, 63)
- - value: 2
- color: rgb(205, 97, 85)
- - type: custom:mini-graph-card
- hours_to_show: 24
- name: Strømudgift time for time
- aggregate_func: diff
- #line_width: 2
- #points_per_hour: 60
- hour24: true
- group_by: hour
- entities:
- - sensor.powerprice_hourly
- show:
- fill: true
- graph: bar
- labels: true
- legend: true
- color_thresholds:
- - value: 0
- color: rgb(82, 190, 128 )
- - value: 2
- color: rgb(244, 208, 63)
- - value: 4
- color: rgb(205, 97, 85)
- - type: custom:mini-graph-card
- name: Strømforbrug seneste 7 dage
- hours_to_show: 168
- aggregate_func: diff
- #line_width: 2
- #points_per_hour: 60
- hour24: true
- group_by: date
- entities:
- - sensor.energy_monthly
- show:
- fill: true
- graph: bar
- labels: true
- legend: true
- color_thresholds:
- - value: 0
- color: rgb(82, 190, 128 )
- - value: 1
- color: rgb(244, 208, 63)
- - value: 2
- color: rgb(205, 97, 85)
- - type: 'custom:config-template-card'
- view_layout:
- grid-area: c13
- entities:
- - sensor.eloverblik_energy_total
- card:
- type: custom:mini-graph-card
- hours_to_show: 744
- aggregate_func: diff
- name: Strømudgift løbende måned
- #line_width: 2
- #points_per_hour: 60
- hour24: true
- group_by: date
- entities:
- - sensor.price_monthly
- show:
- fill: true
- graph: bar
- labels: true
- legend: true
- color_thresholds:
- - value: 0
- color: rgb(82, 190, 128 )
- - value: 40
- color: rgb(244, 208, 63)
- - value: 60
- color: rgb(205, 97, 85)
- #Apex card #1 - dagens elpriser
- - type: 'custom:config-template-card'
- view_layout:
- grid-area: c21
- entities:
- - sensor.nordpool_kwh_dk2_dkk_3_095_025
- element:
- type: custom:apexcharts-card
- experimental:
- color_threshold: true
- graph_span: 24h
- # title: Strømpriser i dag (kr/kWh)
- header:
- title: ${"Strømpriser i dag (kr/kWh) - Nu "+ Math.round(states['sensor.nordpool_kwh_dk2_dkk_3_095_025'].attributes.current_price*10)/10 + " - Gns " + Math.round(states['sensor.nordpool_kwh_dk2_dkk_3_095_025'].attributes.average *10)/10 + " kr/kWh"}
- show: true
- span:
- start: day
- yaxis:
- - min: 0
- max: 8
- decimals: 1
- apex_config:
- tickAmount: 8
- now:
- show: true
- label: Nu
- series:
- - entity: sensor.nordpool_kwh_dk2_dkk_3_095_025
- type: column
- data_generator: |
- return entity.attributes.raw_today.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
- });
- float_precision: 2
- color_threshold:
- - value: 0
- color: rgb(82, 190, 128 )
- - value: 2
- color: rgb(244, 208, 63)
- - value: 3
- color: rgb(205, 97, 85)
- #Apex card #2 - morgendagens elpriser
- - type: conditional
- conditions:
- - entity: sensor.elpris_tomorrow_available
- state: 'True'
- view_layout:
- grid-area: c23
- card:
- type: custom:apexcharts-card
- experimental:
- color_threshold: true
- graph_span: 1d
- header:
- title: Strømpriser i morgen (kr/kWh)
- show: true
- span:
- start: day
- offset: +1d
- yaxis:
- - min: 0
- max: 8
- decimals: 1
- apex_config:
- tickAmount: 8
- series:
- - entity: sensor.nordpool_kwh_dk2_dkk_3_095_025
- type: column
- data_generator: |
- return entity.attributes.raw_tomorrow.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];
- });
- float_precision: 2
- color_threshold:
- - value: 0
- color: rgb(82, 190, 128 )
- - value: 2
- color: rgb(244, 208, 63)
- - value: 3
- color: rgb(205, 97, 85)
- - type: conditional
- conditions:
- - entity: sensor.elpris_tomorrow_available
- state: 'False'
- view_layout:
- grid-area: c23
- card:
- type: markdown #custom:useful-markdown-card
- #view_layout:
- # grid-area: h1
- content: >
- Strømpriser for i morgen er ikke tilgængelige endnu.<br>
- Data forventes ca. kl. 1300
Add Comment
Please, Sign In to add comment