Guest User

Home Assistant Energy Dashboard

a guest
Mar 4th, 2025
1,144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 13.18 KB | None | 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-Anzeige
  10.         heading_style: title
  11.         icon: mdi:transmission-tower
  12.       - type: tile
  13.         entity: sensor.pv_power
  14.         icon: mdi:solar-power
  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.pv1_power
  25.         icon: mdi:solar-power-variant
  26.         color: orange
  27.         name: Panels West
  28.         vertical: false
  29.         layout_options:
  30.           grid_columns: 2
  31.           grid_rows: 1
  32.         state_content: state
  33.         features_position: bottom
  34.       - type: tile
  35.         entity: sensor.pv2_power
  36.         icon: mdi:solar-power-variant
  37.         color: orange
  38.         name: Panels Ost
  39.         vertical: false
  40.         layout_options:
  41.           grid_columns: 2
  42.           grid_rows: 1
  43.         state_content: state
  44.         features_position: bottom
  45.       - type: tile
  46.         entity: sensor.meter_active_power_total
  47.         icon: mdi:transmission-tower-export
  48.         color: red
  49.         name: Netzbezug
  50.         vertical: false
  51.         layout_options:
  52.           grid_columns: 2
  53.           grid_rows: 1
  54.         state_content: state
  55.         features_position: bottom
  56.         visibility:
  57.           - condition: numeric_state
  58.             entity: sensor.meter_active_power_total
  59.             below: 0
  60.       - type: tile
  61.         entity: sensor.meter_active_power_total
  62.         icon: mdi:transmission-tower-import
  63.         color: teal
  64.         name: Netzeinspeisung
  65.         vertical: false
  66.         layout_options:
  67.           grid_columns: 2
  68.           grid_rows: 1
  69.         state_content: state
  70.         features_position: bottom
  71.         visibility:
  72.           - condition: numeric_state
  73.             entity: sensor.meter_active_power_total
  74.             above: 0
  75.       - type: custom:apexcharts-card
  76.         apex_config:
  77.           chart:
  78.             height: 230px
  79.           legend:
  80.             show: false
  81.         yaxis:
  82.           - min: ~0
  83.             max: ~500
  84.             decimals: 0
  85.             apex_config:
  86.               tickAmount: 4
  87.               forceNiceScale: true
  88.               title:
  89.                 text: W
  90.                 rotate: -90
  91.         all_series_config:
  92.           stroke_width: 1
  93.           float_precision: 0
  94.           show:
  95.             in_header: raw
  96.             legend_value: false
  97.           type: area
  98.           opacity: 0.2
  99.           statistics:
  100.             type: mean
  101.             period: 5minute
  102.         span:
  103.           end: minute
  104.         graph_span: 24h
  105.         header:
  106.           show: true
  107.           title: ""
  108.           show_states: true
  109.           colorize_states: true
  110.           floating: false
  111.         series:
  112.           - entity: sensor.pv_power
  113.             name: Solarproduktion
  114.             color: orange
  115.           - entity: sensor.house_consumption
  116.             name: Hausverbrauch
  117.             color: purple
  118.         grid_options:
  119.           columns: 24
  120.         experimental:
  121.           disable_config_validation: true
  122.         card_mod:
  123.           style: |
  124.            div#header__title {
  125.               font-size: 18px;
  126.               margin-top:0.25rem;
  127.               margin-bottom:0.5rem
  128.             }  
  129.             div#header__states {
  130.               justify-content: start;
  131.             }
  132.             div#state__value #state{
  133.               font-size: 18px;
  134.               padding-right:5px
  135.             }
  136.     column_span: 2
  137.   - type: grid
  138.     cards:
  139.       - type: heading
  140.         heading_style: title
  141.         icon: mdi:lightning-bolt-circle
  142.         heading: Energie-Daten heute
  143.       - type: tile
  144.         entity: sensor.energy_production_today
  145.         show_entity_picture: false
  146.         vertical: false
  147.         icon: mdi:sun-angle
  148.         color: orange
  149.         name: Forecast West
  150.         features_position: bottom
  151.       - type: tile
  152.         entity: sensor.energy_production_today_2
  153.         show_entity_picture: false
  154.         vertical: false
  155.         icon: mdi:sun-angle
  156.         color: orange
  157.         name: Forecast Ost
  158.         features_position: bottom
  159.       - type: tile
  160.         entity: sensor.solarproduktion_west_energy_daily
  161.         icon: mdi:solar-power
  162.         color: orange
  163.         name: Produktion West
  164.         vertical: false
  165.         layout_options:
  166.           grid_columns: 2
  167.           grid_rows: 1
  168.         state_content: state
  169.         features_position: bottom
  170.       - type: tile
  171.         entity: sensor.solarproduktion_ost_energy_daily
  172.         icon: mdi:solar-power
  173.         color: orange
  174.         name: Produktion Ost
  175.         vertical: false
  176.         layout_options:
  177.           grid_columns: 2
  178.           grid_rows: 1
  179.         state_content: state
  180.         features_position: bottom
  181.       - type: tile
  182.         entity: sensor.today_s_pv_generation
  183.         icon: mdi:solar-power
  184.         color: orange
  185.         name: Heutige Produktion
  186.         vertical: false
  187.         state_content: state
  188.         features_position: bottom
  189.       - type: tile
  190.         entity: sensor.hausverbrauch_pro_tag
  191.         icon: ""
  192.         color: purple
  193.         vertical: false
  194.         layout_options:
  195.           grid_columns: 2
  196.           grid_rows: 1
  197.         state_content: state
  198.         features_position: bottom
  199.         name: Heutiger Verbrauch
  200.       - type: tile
  201.         entity: sensor.netzeinspeisung_pro_tag
  202.         icon: ""
  203.         color: teal
  204.         name: Einspeisung
  205.         features_position: bottom
  206.         vertical: false
  207.       - type: tile
  208.         entity: sensor.stromverbrauch_pro_tag
  209.         icon: ""
  210.         color: red
  211.         name: Netzbezug
  212.         features_position: bottom
  213.         vertical: false
  214.     column_span: 1
  215.   - type: grid
  216.     cards:
  217.       - type: heading
  218.         heading_style: title
  219.         icon: mdi:bell-ring
  220.         heading: Aktive Geräte
  221.       - type: custom:auto-entities
  222.         card:
  223.           type: vertical-stack
  224.           show_header_toggle: false
  225.         filter:
  226.           include:
  227.             - entity_id: sensor.*_power
  228.               options:
  229.                 type: tile
  230.             - entity_id: sensor.*_leistung
  231.               options:
  232.                 type: tile
  233.           exclude:
  234.             - state: "0.0"
  235.             - state: "-0.0"
  236.             - state: "0"
  237.             - state: "-0"
  238.             - entity_id: sensor.*grid*
  239.             - entity_id: sensor.*battery*
  240.             - entity_id: sensor.*standby*
  241.             - entity_id: sensor.*total*
  242.             - entity_id: sensor.*back_up*
  243.             - entity_id: sensor.*pv*
  244.             - entity_id: sensor.active_power
  245.         card_param: cards
  246.         show_empty: false
  247.   - type: grid
  248.     cards:
  249.       - type: heading
  250.         heading: Produktion 10 Tage
  251.         heading_style: title
  252.         icon: mdi:solar-power
  253.       - type: custom:apexcharts-card
  254.         yaxis:
  255.           - id: first
  256.             decimals: 0
  257.             min: ~0
  258.             max: ~5
  259.             apex_config:
  260.               tickAmount: 4
  261.               forceNiceScale: true
  262.               title:
  263.                 text: kWh
  264.                 rotate: -90
  265.         apex_config:
  266.           chart:
  267.             height: 200px
  268.           legend:
  269.             show: false
  270.           dataLabels:
  271.             style:
  272.               fontSize: 0.6rem
  273.             rotate: 90
  274.         span:
  275.           end: day
  276.         graph_span: 10d
  277.         header:
  278.           show: false
  279.           title: Produktion 7 Tage
  280.           show_states: false
  281.           colorize_states: true
  282.         all_series_config:
  283.           type: column
  284.           statistics:
  285.             type: sum
  286.           group_by:
  287.             func: diff
  288.             start_with_last: true
  289.             duration: 1day
  290.           show:
  291.             in_header: raw
  292.             datalabels: true
  293.           opacity: 0.2
  294.           stroke_width: 1
  295.         series:
  296.           - entity: sensor.total_pv_generation
  297.             yaxis_id: first
  298.             name: Solarproduktion
  299.             color: orange
  300.         card_mod:
  301.           style: |
  302.            div#header__title {
  303.               font-size: 18px;
  304.               margin-top:0.25rem;
  305.               margin-bottom:0.5rem
  306.             }  
  307.     column_span: 1
  308.   - type: grid
  309.     cards:
  310.       - type: heading
  311.         heading: Hausverbrauch 10 Tage
  312.         heading_style: title
  313.         icon: mdi:home-lightning-bolt
  314.       - type: custom:apexcharts-card
  315.         yaxis:
  316.           - id: first
  317.             decimals: 0
  318.             min: ~0
  319.             max: ~5
  320.             apex_config:
  321.               tickAmount: 4
  322.               forceNiceScale: true
  323.               title:
  324.                 text: kWh
  325.                 rotate: -90
  326.         apex_config:
  327.           chart:
  328.             height: 200px
  329.           legend:
  330.             show: false
  331.           dataLabels:
  332.             style:
  333.               fontSize: 0.6rem
  334.             rotate: 90
  335.         span:
  336.           end: day
  337.         graph_span: 10d
  338.         header:
  339.           show: false
  340.           title: Hausverbrauch 10 Tage
  341.           show_states: false
  342.           colorize_states: true
  343.         all_series_config:
  344.           type: column
  345.           statistics:
  346.             type: sum
  347.           group_by:
  348.             func: diff
  349.             start_with_last: true
  350.             duration: 1day
  351.           show:
  352.             in_header: raw
  353.             datalabels: true
  354.           opacity: 0.2
  355.           stroke_width: 1
  356.         series:
  357.           - entity: sensor.house_consumption_total
  358.             yaxis_id: first
  359.             name: Hausverbrauch
  360.             color: indigo
  361.         card_mod:
  362.           style: |
  363.            div#header__title {
  364.               font-size: 18px;
  365.               margin-top:0.25rem;
  366.               margin-bottom:0.5rem
  367.             }  
  368.   - type: grid
  369.     cards:
  370.       - type: heading
  371.         heading_style: title
  372.         heading: Einspeisung 10 Tage
  373.         icon: mdi:transmission-tower-import
  374.       - type: custom:apexcharts-card
  375.         yaxis:
  376.           - id: first
  377.             decimals: 0
  378.             min: ~0
  379.             max: ~5
  380.             apex_config:
  381.               tickAmount: 4
  382.               forceNiceScale: true
  383.               title:
  384.                 text: kWh
  385.                 rotate: -90
  386.         apex_config:
  387.           chart:
  388.             height: 200px
  389.           legend:
  390.             show: false
  391.           dataLabels:
  392.             style:
  393.               fontSize: 0.6rem
  394.             rotate: 90
  395.         span:
  396.           end: day
  397.         graph_span: 10d
  398.         header:
  399.           show: false
  400.           title: Einspeisung 7 Tage
  401.           show_states: false
  402.           colorize_states: true
  403.         all_series_config:
  404.           type: column
  405.           statistics:
  406.             type: sum
  407.           group_by:
  408.             func: diff
  409.             start_with_last: true
  410.             duration: 1day
  411.           show:
  412.             in_header: raw
  413.             datalabels: true
  414.           opacity: 0.2
  415.           stroke_width: 1
  416.         series:
  417.           - entity: sensor.total_energy_export
  418.             yaxis_id: first
  419.             name: Einspeisung
  420.             color: teal
  421.         card_mod:
  422.           style: |
  423.            div#header__title {
  424.               font-size: 18px;
  425.               margin-top:0.25rem;
  426.               margin-bottom:0.5rem
  427.             }  
  428.     column_span: 1
  429.   - type: grid
  430.     cards:
  431.       - type: heading
  432.         heading: Netzbezug 10 Tage
  433.         heading_style: title
  434.         icon: mdi:transmission-tower-export
  435.       - type: custom:apexcharts-card
  436.         yaxis:
  437.           - id: first
  438.             decimals: 0
  439.             min: ~0
  440.             max: ~5
  441.             apex_config:
  442.               tickAmount: 4
  443.               forceNiceScale: true
  444.               title:
  445.                 text: kWh
  446.                 rotate: -90
  447.         apex_config:
  448.           chart:
  449.             height: 200px
  450.           legend:
  451.             show: false
  452.           dataLabels:
  453.             style:
  454.               fontSize: 0.6rem
  455.             rotate: 90
  456.         span:
  457.           end: day
  458.         graph_span: 10d
  459.         header:
  460.           show: false
  461.           title: Netzbezug 7 Tage
  462.           show_states: false
  463.           colorize_states: true
  464.         all_series_config:
  465.           type: column
  466.           statistics:
  467.             type: sum
  468.           group_by:
  469.             func: diff
  470.             start_with_last: true
  471.             duration: 1day
  472.           show:
  473.             in_header: raw
  474.             datalabels: true
  475.           opacity: 0.2
  476.           stroke_width: 1
  477.         series:
  478.           - entity: sensor.meter_total_energy_import
  479.             yaxis_id: first
  480.             name: Netzbezug
  481.             color: red
  482.         card_mod:
  483.           style: |
  484.            div#header__title {
  485.               font-size: 18px;
  486.               margin-top:0.25rem;
  487.               margin-bottom:0.5rem
  488.             }  
  489. max_columns: 4
  490. cards: []
  491. header:
  492.   card:
  493.     type: markdown
  494.     content: |-
  495.       # Energy-Dashboard
  496.       Die Solarproduktion ({{states('sensor.pv_power')}} W) läuft.
  497.     text_only: true
  498.   layout: responsive
  499.   badges_position: bottom
  500.  
Advertisement
Add Comment
Please, Sign In to add comment