Last Updated:

Duke Energy Data Integration for Home Assistant

S.C.O.R.E.ResilienceEnergy

Overview

Importing energy usage data from Duke Energy into the Home Assistant energy dashboard allows homeowners to monitor their energy consumption in real time. This capability empowers users to make informed decisions about their energy use, promoting efficiency and cost savings.

Resilience icon

Benefits

  • Centralized energy monitoring in the Home Assistant dashboard
  • Enhanced understanding of energy consumption patterns
  • Ability to identify and reduce energy waste

Intent

The purpose of this capability is to seamlessly integrate energy usage data from Duke Energy into Home Assistant. This integration enables users to visualize their energy consumption trends and optimize their usage for better cost management.

Preconditions

  • Active Duke Energy account with online access.
  • Home Assistant installed and configured.
  • Home Assistant energy dashboard set up.
  • Integration available and authenticated: Zigbee2MQTT.
  • Device installed and reachable: Energy Monitoring.

Actors

  • Homeowner accessing energy data
  • Family members reviewing energy usage
  • Energy manager optimizing consumption

Trigger

The capability is triggered by a scheduled task that pulls energy data from Duke Energy on a regular basis.

Workflow Diagram

flowchart TD
    A[Scheduled Task] -->|fetch data| B{Is Data Available?}
    B -->|Yes| C[Import Data to Dashboard]
    C --> D[Update Energy Metrics]
    B -->|No| E[Log Error and Exit]

Workflow Description

1. Scheduled Data Fetch

A scheduled task runs to query Duke Energy’s API for the latest energy usage data.

2. Data Availability Check

The system checks if the data was successfully retrieved from Duke Energy.

3. Data Import

If data is available, it is imported into the Home Assistant energy dashboard.

4. Update Energy Metrics

The energy dashboard is updated to reflect the latest consumption metrics for user analysis.

5. Error Logging

If data is not available, an error is logged for troubleshooting purposes.

Postconditions

The Home Assistant energy dashboard displays the latest energy consumption data from Duke Energy, enabling users to monitor and analyze their energy use.

Optional Enhancements

  • Integrate notifications for unusual energy spikes
  • Add historical data comparison features
  • Enable integration with solar panel energy production data

Recommended Components

Recommended ApplicationsRecommended IntegrationsRecommended Devices
Home AssistantZigbee2MQTT, ESPHomeEnergy Monitoring, Emporia | VUE002

Source Examples