Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

HA error logs. #18

Closed
shthfuup opened this issue Sep 21, 2021 · 6 comments · Fixed by #19
Closed

HA error logs. #18

shthfuup opened this issue Sep 21, 2021 · 6 comments · Fixed by #19

Comments

@shthfuup
Copy link

Capture

This error originated from a custom integration.

Logger: custom_components.duke_energy_gateway
Source: custom_components/duke_energy_gateway/init.py:107
Integration: Duke Energy Gateway (documentation, issues)
First occurred: 12:06:23 PM (1 occurrences)
Last logged: 12:06:23 PM

Could not identify a smart meter on your account with gateway access.

I configured the gateway earlier today and it is showing in the app as configured and online. I am able to access data real time via the Duke Energy app.

Screenshot_20210921-124255_Duke Energy

Note: When logging into the Duke Energy website; I see an old account (no longer active) along with the existing one that is in use and connected to the gateway.

Any advice on how I may be able to resolve this?
Thank you so much for all your efforts on this project!!

@mjmeli
Copy link
Owner

mjmeli commented Sep 21, 2021

What version of the HACS integration are you using? There were issues with the case you mention where you have an old inactive account on older versions. v0.0.9 is the latest.

If you are running the latest then the easiest way to debug these issues is to pull the debug logs from HA, which requires adding this to your configuration.yaml

logger:
  default: info
  logs:
    custom_components.duke_energy_gateway: debug

@shthfuup
Copy link
Author

Thank you for replying so quickly. Here are my versions for both HACs and HA.
HACS_Version

HA_Versions

I added the logging code you provided and here's that output...
https://pastebin.com/QPeNuaVh

@mjmeli
Copy link
Owner

mjmeli commented Sep 21, 2021

Thanks, that's really helpful. I see the issue and I'll fix it today and get a new version pushed to HACS.

@shthfuup
Copy link
Author

Thank you SO much, I am truly indebted to you for this.

mjmeli added a commit that referenced this issue Sep 21, 2021
make sure we exit as soon as a matching meter is found - fixes #18
@mjmeli
Copy link
Owner

mjmeli commented Sep 21, 2021

I just released a new version v0.0.10. You can get the update by refreshing info in HACS and then restarting HA.
image

I believe this should fix your issue but I don't have the exact scenario so I can't test it myself.

@shthfuup
Copy link
Author

Thank you Mike! It fixed it perfectly, once updated, a new entity showed up.

Your talents are exceptional - thank you again,
Douglas

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants