# An energy dashboard
# From Synced: https://synced.com.au/learn/ecosystems/home-assistant/dashboards/home-energy
# Captured on Home Assistant 2026.10.1
title: Energy
views:
  - title: Energy
    path: energy
    icon: mdi:lightning-bolt
    type: sections
    max_columns: 2
    badges:
      - type: entity
        entity: sensor.solar_energy_today
        name: Solar today
        show_name: true
        icon: mdi:solar-power-variant
        color: amber
      - type: entity
        entity: sensor.solar_export_today
        name: Exported today
        show_name: true
        icon: mdi:transmission-tower-export
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Right now
            icon: mdi:flash
          - type: custom:power-flow-card-plus
            grid_options:
              columns: 12
            entities:
              grid:
                entity: sensor.grid_power
                display_state: one_way
                secondary_info:
                  entity: sensor.grid_voltage
                  unit_of_measurement: V
              solar:
                entity: sensor.solar_power
                secondary_info:
                  entity: sensor.solar_energy_today
                  unit_of_measurement: kWh
                  decimals: 1
              battery:
                entity: sensor.battery_power
                state_of_charge: sensor.battery_soc
                display_state: one_way
              home:
                color_icon: solar
              individual:
                - entity: sensor.ev_charger_power
                  name: EV
                  icon: mdi:car-electric
                - entity: sensor.hot_water_power
                  name: Hot water
                  icon: mdi:water-boiler
            kilo_threshold: 1000
            display_zero_lines:
              mode: hide
      - type: grid
        cards:
          - type: heading
            heading: Where it goes
            icon: mdi:home-lightning-bolt
          - type: custom:sankey-chart
            grid_options:
              columns: 12
            show_names: true
            height: 340
            nodes:
              - id: sensor.home_power
                section: 0
                name: Home
              - id: sensor.hot_water_power
                section: 1
                name: Hot water
              - id: sensor.aircon_power
                section: 1
                name: Aircon
              - id: sensor.pool_pump_power
                section: 1
                name: Pool pump
              - id: sensor.fridge_power
                section: 1
                name: Fridge
              - id: sensor.dishwasher_power
                section: 1
                name: Dishwasher
              - id: home_other
                section: 1
                type: remaining_parent_state
                name: Other
            links:
              - source: sensor.home_power
                target: sensor.hot_water_power
              - source: sensor.home_power
                target: sensor.aircon_power
              - source: sensor.home_power
                target: sensor.pool_pump_power
              - source: sensor.home_power
                target: sensor.fridge_power
              - source: sensor.home_power
                target: sensor.dishwasher_power
              - source: sensor.home_power
                target: home_other
            sections:
              - {}
              - min_width: 170
      - type: grid
        column_span: 2
        cards:
          - type: heading
            heading: Last 24 hours
            icon: mdi:chart-bell-curve-cumulative
          - type: custom:apexcharts-card
            section_mode: true
            grid_options:
              columns: full
              rows: 4
            graph_span: 24h
            header:
              show: true
              show_states: true
              colorize_states: true
            yaxis:
              - decimals: 0
                min: -4000
                max: 6000
                apex_config:
                  tickAmount: 5
            series:
              - entity: sensor.solar_power
                name: Solar
                color: '#ff9800'
                stroke_width: 2
                type: area
                opacity: 0.2
                group_by:
                  func: avg
                  duration: 10min
                show:
                  in_header: raw
              - entity: sensor.home_power
                name: Home
                color: '#5fb6ad'
                stroke_width: 2
                group_by:
                  func: avg
                  duration: 10min
                show:
                  in_header: raw
              - entity: sensor.grid_power
                name: Grid
                color: '#488fc2'
                stroke_width: 2
                group_by:
                  func: avg
                  duration: 10min
                show:
                  in_header: raw
