Duke Energy Gateway - Realtime Smart Meter Readings

Yes, mine has stopped collecting data in April (Raleigh, North Carolina). The integration still connects to the gateway, but the gateway no longer collects data from the meter. I’m going to unplug mine and remove the integration at this point.

It was fun while it lasted!

1 Like

Strange how they’ve stopped working. Mine is still working without a hitch here.

Mine too stopped working as did the mobile app a couple days after working flawlessly. The mobile app to was wonky. A couple days later the mobile app is reporting realtime info but the gateway is still ‘offline’

Here’s my error and I too am in Raleigh @Magnus919 Hi!

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/duke_energy_gateway/__init__.py:54
Integration: Duke Energy Gateway (documentation, issues)
First occurred: 10:00:56 AM (1 occurrences)
Last logged: 10:00:56 AM

Error setting up entry [email protected] for duke_energy_gateway
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 425, in _async_request
    resp.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://cust-api.duke-energy.com/gep/v2/auth/oauth2/token')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/duke_energy_gateway/__init__.py", line 54, in async_setup_entry
    selected_meter, selected_gateway = await client.select_default_meter()
  File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 159, in select_default_meter
    account_list = await self.get_account_list()
  File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 99, in get_account_list
    headers = await self._get_oauth_headers()
  File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 343, in _get_oauth_headers
    await self._oauth_login()
  File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 327, in _oauth_login
    resp = await self._async_request(
  File "/usr/local/lib/python3.9/site-packages/pyduke_energy/client.py", line 435, in _async_request
    raise RequestError(
pyduke_energy.errors.RequestError: Request failed with unexpected error [https://cust-api.duke-energy.com/gep/v2/auth/oauth2/token]: (ClientResponseError) 500, message='Internal Server Error', url=URL('https://cust-api.duke-energy.com/gep/v2/auth/oauth2/token')

https://github.com/mjmeli/pyduke-energy/issues/23

There’s a new version of the integration v0.1.1 that fixes the login issue. You can update via HACS.

Anyone ever get anywhere with either the influxDB or the openHAB on the gateway? I was quite surprised to find an openHAB commissioning page being available on a port.

Solved my own issue. The app was working and some folks suggested re pairing the app to gateway. I found the gateway working and thus just focused on HASS and HACS. I killed the repo in HACS and re-downloaded, re-logged in and it works now! HTH

Darn, I didn’t see the responses, thanks all!

1 Like

Seems the HA Duke Energy Gateway integration can no longer login with the same creds that used to work (and still work on their site (here in Raleigh)). Their app says that the “Smart meter usage pilot” has ended and the gateway should be tossed.

Too bad, I became pretty dependent on this device/integration to gather daily power usage. I guess I’ll have to fall back to my Shelly energy monitor (current clamp) but I know that it’s not near as accurate as the gateway was. I wonder if the gateway can be hacked for some other use?

I would be interested in hacking this thing as well to use as something.

Can confirm what @xtalker shared, also in Raleigh.

The official landing page for the program has already been updated to reflect this as well.

This writeup - 2023 Home Assistant - Energy Monitoring - XtremeOwnage.com - is what I’m using as a starting point to evaluate options for real-time monitoring since I didn’t have a solution in place prior to this pilot program. Also interested if anyone from this thread has recommendations not covered in the linked blog post.

Also interested in repurposing the gateway, but it will probably be at the bottom of the ‘project devices bucket’ for a while.

In any case, thanks @mjmeli for all your work on the integration! Got a ton of benefit from it while it lasted.

Anyone pop their gateway open and try hacking into the hardware? Just wondering…

I found this python script that looks like t will pull data from the online report every 15 mins. Any way to get that integrated into HA?

No but it does have a usb port on the back?

Would be interested in that as well - problem remains that it is data from the past and not current.

Looks like we are in the same area. I just learned about the Duke program today (and that it has been stopped). I have been looking at a Emporia Vue 2 that is clamped to the circuits, but have not found a decent offer by an electrician.

I think the data can be polled every 15 minutes from what I was reading but maybe I misinterpreted things

When looking at the portal, it allows you to see the data in 15-min increments, but not from the current day. Either way, it would be helpful to get this into HA. I have not found a way to integrate it, but I am also VERY new to HA

if anyone cares to look at it / is better than me; I dumped the EEPROM from mine