Guest User

Energie Dashboard

a guest
Mar 22nd, 2025
1,294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 17.84 KB | Source Code | 0 0
  1. title: Energie
  2. path: energie
  3. icon: mdi:home-lightning-bolt
  4. type: sections
  5. sections:
  6.   - type: grid
  7.     cards:
  8.       - type: heading
  9.         heading: Live-Azeig
  10.         heading_style: title
  11.         icon: mdi:transmission-tower
  12.       - type: tile
  13.         entity: sensor.input_power_with_efficiency_loss
  14.         icon: mdi:solar-power-variant
  15.         color: orange
  16.         name: Solarproduktion
  17.         vertical: false
  18.         layout_options:
  19.           grid_columns: 2
  20.           grid_rows: 1
  21.         state_content: state
  22.         features_position: bottom
  23.       - type: tile
  24.         entity: sensor.battery_charge_discharge_power
  25.         icon: mdi:battery-arrow-up
  26.         color: turquoise
  27.         name: Batterieladig
  28.         vertical: false
  29.         layout_options:
  30.           grid_columns: 2
  31.           grid_rows: 1
  32.         state_content: state
  33.         features_position: bottom
  34.         visibility:
  35.           - condition: numeric_state
  36.             entity: sensor.battery_charge_discharge_power
  37.             above: 0
  38.       - type: tile
  39.         entity: sensor.battery_charge_discharge_power
  40.         icon: mdi:battery-10
  41.         color: slategrey
  42.         name: Batterie
  43.         vertical: false
  44.         layout_options:
  45.           grid_columns: 2
  46.           grid_rows: 1
  47.         state_content: state
  48.         features_position: bottom
  49.         visibility:
  50.           - condition: numeric_state
  51.             entity: sensor.battery_charge_discharge_power
  52.             above: -1
  53.             below: 1
  54.       - type: tile
  55.         entity: sensor.battery_charge_discharge_power
  56.         icon: mdi:battery-arrow-down
  57.         color: tomato
  58.         name: Batterieentladig
  59.         vertical: false
  60.         layout_options:
  61.           grid_columns: 2
  62.           grid_rows: 1
  63.         state_content: state
  64.         features_position: bottom
  65.         visibility:
  66.           - condition: numeric_state
  67.             entity: sensor.battery_charge_discharge_power
  68.             below: 0
  69.       - type: tile
  70.         entity: sensor.active_power_house
  71.         icon: mdi:home-lightning-bolt-outline
  72.         color: purple
  73.         name: Huusverbruch
  74.         vertical: false
  75.         layout_options:
  76.           grid_columns: 2
  77.           grid_rows: 1
  78.         state_content: state
  79.         features_position: bottom
  80.         visibility:
  81.           - condition: numeric_state
  82.             entity: sensor.battery_charge_discharge_power
  83.             below: 0
  84.       - type: tile
  85.         entity: sensor.power_meter_active_power
  86.         icon: mdi:transmission-tower-export
  87.         color: red
  88.         name: Netzbezug
  89.         vertical: false
  90.         layout_options:
  91.           grid_columns: 2
  92.           grid_rows: 1
  93.         state_content: state
  94.         features_position: bottom
  95.         visibility:
  96.           - condition: numeric_state
  97.             entity: sensor.power_meter_active_power
  98.             below: 0
  99.       - type: tile
  100.         entity: sensor.power_meter_active_power
  101.         icon: mdi:transmission-tower-import
  102.         color: white
  103.         name: Netzispising
  104.         vertical: false
  105.         layout_options:
  106.           grid_columns: 2
  107.           grid_rows: 1
  108.         state_content: state
  109.         features_position: bottom
  110.         visibility:
  111.           - condition: numeric_state
  112.             entity: sensor.power_meter_active_power
  113.             above: 0
  114.       - type: custom:apexcharts-card
  115.         apex_config:
  116.           chart:
  117.             height: 230px
  118.           legend:
  119.             show: false
  120.         yaxis:
  121.           - min: ~0
  122.             max: ~500
  123.             decimals: 0
  124.             apex_config:
  125.               tickAmount: 4
  126.               forceNiceScale: true
  127.               title:
  128.                 text: W
  129.                 rotate: -90
  130.         all_series_config:
  131.           stroke_width: 1
  132.           float_precision: 0
  133.           show:
  134.             in_header: raw
  135.             legend_value: false
  136.           type: area
  137.           opacity: 0.2
  138.           statistics:
  139.             type: mean
  140.             period: 5minute
  141.         span:
  142.           end: minute
  143.         graph_span: 24h
  144.         header:
  145.           show: true
  146.           title: ""
  147.           show_states: true
  148.           colorize_states: true
  149.           floating: false
  150.         series:
  151.           - entity: sensor.input_power_with_efficiency_loss
  152.             color: orange
  153.             name: PV-Input
  154.           - entity: sensor.active_power_house
  155.             name: Huusverbruch
  156.             color: purple
  157.           - entity: sensor.battery_charge_only
  158.             name: Batterieladig
  159.             color: turquoise
  160.           - entity: sensor.battery_charge_only_2
  161.             name: Batterieentladig
  162.             color: tomato
  163.           - entity: sensor.eingespeister_strom
  164.             name: Iigspist
  165.             color: white
  166.         grid_options:
  167.           columns: 24
  168.         experimental:
  169.           disable_config_validation: true
  170.         card_mod:
  171.           style: |
  172.            div#header__title {
  173.               font-size: 18px;
  174.               margin-top:0.25rem;
  175.               margin-bottom:0.5rem
  176.             }  
  177.             div#header__states {
  178.               justify-content: start;
  179.             }
  180.             div#state__value #state{
  181.               font-size: 18px;
  182.               padding-right:5px
  183.             }
  184.     column_span: 2
  185.   - type: grid
  186.     cards:
  187.       - type: heading
  188.         heading_style: title
  189.         icon: mdi:lightning-bolt-circle
  190.         heading: Übersicht hüt
  191.       - type: tile
  192.         entity: sensor.energy_production_today_2
  193.         show_entity_picture: false
  194.         vertical: false
  195.         icon: mdi:sun-angle
  196.         color: orange
  197.         name: Forecast
  198.         features_position: bottom
  199.       - type: tile
  200.         entity: sensor.battery_state_of_capacity
  201.         show_entity_picture: false
  202.         vertical: false
  203.         icon: mdi:battery-10
  204.         color: tomato
  205.         name: Batterie %
  206.         features_position: bottom
  207.         visibility:
  208.           - condition: numeric_state
  209.             entity: sensor.battery_state_of_capacity
  210.             below: 20
  211.       - type: tile
  212.         entity: sensor.battery_state_of_capacity
  213.         show_entity_picture: false
  214.         vertical: false
  215.         icon: mdi:battery-30
  216.         color: orange
  217.         name: Batterie %
  218.         features_position: bottom
  219.         visibility:
  220.           - condition: numeric_state
  221.             entity: sensor.battery_state_of_capacity
  222.             above: 19.99
  223.             below: 40
  224.       - type: tile
  225.         entity: sensor.battery_state_of_capacity
  226.         show_entity_picture: false
  227.         vertical: false
  228.         icon: mdi:battery-50
  229.         color: gold
  230.         name: Batterie %
  231.         features_position: bottom
  232.         visibility:
  233.           - condition: numeric_state
  234.             entity: sensor.battery_state_of_capacity
  235.             above: 39.99
  236.             below: 60
  237.       - type: tile
  238.         entity: sensor.battery_state_of_capacity
  239.         show_entity_picture: false
  240.         vertical: false
  241.         icon: mdi:battery-70
  242.         color: teal
  243.         name: Batterie %
  244.         features_position: bottom
  245.         visibility:
  246.           - condition: numeric_state
  247.             entity: sensor.battery_state_of_capacity
  248.             above: 59.99
  249.             below: 80
  250.       - type: tile
  251.         entity: sensor.battery_state_of_capacity
  252.         show_entity_picture: false
  253.         vertical: false
  254.         icon: mdi:battery
  255.         color: mediumaquamarine
  256.         name: Batterie %
  257.         features_position: bottom
  258.         visibility:
  259.           - condition: numeric_state
  260.             entity: sensor.battery_state_of_capacity
  261.             above: 79.99
  262.       - type: tile
  263.         entity: sensor.inverter_daily_yield
  264.         icon: mdi:solar-power-variant
  265.         color: orange
  266.         name: Produziert
  267.         vertical: false
  268.         layout_options:
  269.           grid_columns: 2
  270.           grid_rows: 1
  271.         state_content: state
  272.         features_position: bottom
  273.       - type: tile
  274.         entity: sensor.battery_day_charge
  275.         icon: mdi:battery-arrow-up
  276.         color: teal
  277.         name: Batterieladig
  278.         vertical: false
  279.         layout_options:
  280.           grid_columns: 2
  281.           grid_rows: 1
  282.         state_content: state
  283.         features_position: bottom
  284.       - type: tile
  285.         entity: sensor.inverter_daily_yield
  286.         icon: mdi:solar-power
  287.         color: orange
  288.         name: Heutige Produktion
  289.         vertical: false
  290.         state_content: state
  291.         features_position: bottom
  292.       - type: tile
  293.         entity: sensor.battery_day_discharge
  294.         icon: mdi:battery-arrow-down
  295.         color: tomato
  296.         name: Batterieentladig
  297.         vertical: false
  298.         layout_options:
  299.           grid_columns: 2
  300.           grid_rows: 1
  301.         state_content: state
  302.         features_position: bottom
  303.       - type: tile
  304.         entity: sensor.hausverbrauch_pro_tag
  305.         icon: ""
  306.         color: purple
  307.         vertical: false
  308.         layout_options:
  309.           grid_columns: 2
  310.           grid_rows: 1
  311.         state_content: state
  312.         features_position: bottom
  313.         name: Heutiger Verbrauch
  314.       - type: tile
  315.         entity: sensor.netzeinspeisung_pro_tag
  316.         icon: ""
  317.         color: teal
  318.         name: Einspeisung
  319.         features_position: bottom
  320.         vertical: false
  321.       - type: tile
  322.         entity: sensor.stromverbrauch_pro_tag
  323.         icon: ""
  324.         color: red
  325.         name: Netzbezug
  326.         features_position: bottom
  327.         vertical: false
  328.     column_span: 1
  329.   - type: grid
  330.     cards:
  331.       - type: heading
  332.         heading_style: title
  333.         icon: mdi:bell-ring
  334.         heading: Aktivi Grät
  335.         grid_options:
  336.           columns: full
  337.           rows: 1
  338.       - type: custom:auto-entities
  339.         card:
  340.           type: vertical-stack
  341.           show_header_toggle: false
  342.         filter:
  343.           include:
  344.             - entity_id: sensor.*_power
  345.               options:
  346.                 type: tile
  347.             - entity_id: sensor.*_leistung
  348.               options:
  349.                 type: tile
  350.           exclude:
  351.             - state: "0.0"
  352.             - state: "-0.0"
  353.             - state: "0"
  354.             - state: "-0"
  355.             - entity_id: sensor.*grid*
  356.             - entity_id: sensor.*battery*
  357.             - entity_id: sensor.*standby*
  358.             - entity_id: sensor.*total*
  359.             - entity_id: sensor.*back_up*
  360.             - entity_id: sensor.*pv*
  361.             - entity_id: sensor.active_power
  362.             - entity_id: sensor.*inverter*
  363.             - entity_id: sensor.*batteri*
  364.             - entity_id: sensor.*wechselr*
  365.             - entity_id: sensor.*power_m*
  366.         card_param: cards
  367.         show_empty: false
  368.         grid_options:
  369.           columns: 12
  370.           rows: auto
  371.         sort:
  372.           method: state
  373.           numeric: true
  374.           reverse: true
  375.     column_span: 1
  376.   - type: grid
  377.     cards:
  378.       - type: heading
  379.         heading: Produktion vo 10 Täg
  380.         heading_style: title
  381.         icon: mdi:solar-power
  382.       - type: custom:apexcharts-card
  383.         yaxis:
  384.           - id: first
  385.             decimals: 0
  386.             min: ~0
  387.             max: ~5
  388.             apex_config:
  389.               tickAmount: 4
  390.               forceNiceScale: true
  391.               title:
  392.                 text: kWh
  393.                 rotate: -90
  394.         apex_config:
  395.           chart:
  396.             height: 200px
  397.           legend:
  398.             show: false
  399.           dataLabels:
  400.             style:
  401.               fontSize: 0.6rem
  402.             rotate: 90
  403.         span:
  404.           end: day
  405.         graph_span: 10d
  406.         header:
  407.           show: false
  408.           title: Produktion 7 Tage
  409.           show_states: false
  410.           colorize_states: true
  411.         all_series_config:
  412.           type: column
  413.           statistics:
  414.             type: sum
  415.           group_by:
  416.             func: diff
  417.             start_with_last: true
  418.             duration: 1day
  419.           show:
  420.             in_header: raw
  421.             datalabels: true
  422.           opacity: 0.2
  423.           stroke_width: 1
  424.         series:
  425.           - entity: sensor.inverter_total_yield
  426.             yaxis_id: first
  427.             name: Solarproduktion
  428.             color: orange
  429.             transform: return x * 1000;
  430.         card_mod:
  431.           style: |
  432.            div#header__title {
  433.               font-size: 18px;
  434.               margin-top:0.25rem;
  435.               margin-bottom:0.5rem
  436.             }  
  437.     column_span: 1
  438.   - type: grid
  439.     cards:
  440.       - type: heading
  441.         heading: Huusverbruch vo 10 Täg
  442.         heading_style: title
  443.         icon: mdi:home-lightning-bolt
  444.       - type: custom:apexcharts-card
  445.         yaxis:
  446.           - id: first
  447.             decimals: 0
  448.             min: ~0
  449.             max: ~5
  450.             apex_config:
  451.               tickAmount: 4
  452.               forceNiceScale: true
  453.               title:
  454.                 text: kWh
  455.                 rotate: -90
  456.         apex_config:
  457.           chart:
  458.             height: 200px
  459.           legend:
  460.             show: false
  461.           dataLabels:
  462.             style:
  463.               fontSize: 0.6rem
  464.             rotate: 90
  465.         span:
  466.           end: day
  467.         graph_span: 10d
  468.         header:
  469.           show: false
  470.           title: Hausverbrauch 10 Tage
  471.           show_states: false
  472.           colorize_states: true
  473.         all_series_config:
  474.           type: column
  475.           statistics:
  476.             type: sum
  477.           group_by:
  478.             func: diff
  479.             start_with_last: true
  480.             duration: 1day
  481.           show:
  482.             in_header: raw
  483.             datalabels: true
  484.           opacity: 0.2
  485.           stroke_width: 1
  486.         series:
  487.           - entity: sensor.battery_total_charge
  488.             yaxis_id: first
  489.             name: Batterieladig
  490.             color: purple
  491.         card_mod:
  492.           style: |
  493.            div#header__title {
  494.               font-size: 18px;
  495.               margin-top:0.25rem;
  496.               margin-bottom:0.5rem
  497.             }  
  498.   - type: grid
  499.     cards:
  500.       - type: heading
  501.         heading_style: title
  502.         heading: Iispisig vo 10 Täg
  503.         icon: mdi:transmission-tower-import
  504.       - type: custom:apexcharts-card
  505.         yaxis:
  506.           - id: first
  507.             decimals: 0
  508.             min: ~0
  509.             max: ~5
  510.             apex_config:
  511.               tickAmount: 4
  512.               forceNiceScale: true
  513.               title:
  514.                 text: kWh
  515.                 rotate: -90
  516.         apex_config:
  517.           chart:
  518.             height: 200px
  519.           legend:
  520.             show: false
  521.           dataLabels:
  522.             style:
  523.               fontSize: 0.6rem
  524.               colors:
  525.                - "#000000"
  526.             rotate: 90
  527.         span:
  528.           end: day
  529.         graph_span: 10d
  530.         header:
  531.           show: false
  532.           title: Einspeisung 7 Tage
  533.           show_states: false
  534.           colorize_states: true
  535.         all_series_config:
  536.           type: column
  537.           statistics:
  538.             type: sum
  539.           group_by:
  540.             func: diff
  541.             start_with_last: true
  542.             duration: 1day
  543.           show:
  544.             in_header: raw
  545.             datalabels: true
  546.           opacity: 0.2
  547.           stroke_width: 1
  548.         series:
  549.           - entity: sensor.power_meter_exported
  550.             yaxis_id: first
  551.             name: Einspeisung
  552.             color: white
  553.         card_mod:
  554.           style: |
  555.            div#header__title {
  556.               font-size: 18px;
  557.               margin-top:0.25rem;
  558.               margin-bottom:0.5rem
  559.             }  
  560.     column_span: 1
  561.   - type: grid
  562.     cards:
  563.       - type: heading
  564.         heading: Netzbezug vo 10 Täg
  565.         heading_style: title
  566.         icon: mdi:transmission-tower-export
  567.       - type: custom:apexcharts-card
  568.         yaxis:
  569.           - id: first
  570.             decimals: 0
  571.             min: ~0
  572.             max: ~5
  573.             apex_config:
  574.               tickAmount: 4
  575.               forceNiceScale: true
  576.               title:
  577.                 text: kWh
  578.                 rotate: -90
  579.         apex_config:
  580.           chart:
  581.             height: 200px
  582.           legend:
  583.             show: false
  584.           dataLabels:
  585.             style:
  586.               fontSize: 0.6rem
  587.             rotate: 90
  588.         span:
  589.           end: day
  590.         graph_span: 10d
  591.         header:
  592.           show: false
  593.           title: Netzbezug 7 Tage
  594.           show_states: false
  595.           colorize_states: true
  596.         all_series_config:
  597.           type: column
  598.           statistics:
  599.             type: sum
  600.           group_by:
  601.             func: diff
  602.             start_with_last: true
  603.             duration: 1day
  604.           show:
  605.             in_header: raw
  606.             datalabels: true
  607.           opacity: 0.2
  608.           stroke_width: 1
  609.         series:
  610.           - entity: sensor.power_meter_consumption
  611.             yaxis_id: first
  612.             name: Netzbezug
  613.             color: tomato
  614.         card_mod:
  615.           style: |
  616.            div#header__title {
  617.               font-size: 18px;
  618.               margin-top:0.25rem;
  619.               margin-bottom:0.5rem
  620.             }  
  621. max_columns: 4
  622. cards: []
  623. header:
  624.   card:
  625.     type: markdown
  626.     content: >-
  627.       # Energie-Dashboard
  628.  
  629.       D' Solarproduktion lauft mit
  630.       {{states('sensor.input_power_with_efficiency_loss')|int}} W
  631.  
  632.       S' Wetter wird hüt überwiegend {{ 'sunnig🌞' if state_attr('weather.home',
  633.       'cloud_coverage') < 50 else 'rägnerisch🌧️' if state_attr('weather.home',
  634.       'condition') == 'rainy'  else 'schneiend sii ❄️' if
  635.       state_attr('weather.home', 'condition') == 'snowy'  else 'bewölkt⛅' }}. D'
  636.       Ertragsprognose liit bi
  637.       {{states('sensor.energy_production_today_2')|float|round(1)}} kWh
  638.  
  639.       Es sind gsamthaft
  640.       {{states('sensor.trees_saved_with_solar')|float|round(3)}}🌳pflanzt worde
  641.     text_only: true
  642.   layout: responsive
  643.   badges_position: bottom
  644.  
Advertisement
Add Comment
Please, Sign In to add comment