-
Notifications
You must be signed in to change notification settings - Fork 4
Could not identify a smart meter on your account with gateway access #10
Comments
I would guess there is some difference in your API responses from mine that is causing it to get filtered out. The code tries to filter down to supported meters but the logic could be bad
A couple of ideas to help track it down
|
Thanks for the quick reply! Also, I forgot to say earlier- thanks for developing this! I turned on the logging and I see this: 2021-08-23 14:15:22 DEBUG (MainThread) [custom_components.duke_energy_gateway] Setup Duke Energy API client My Python install is borked (or I'm not running something right). Either way- I can't get example.py to run. I tried to use the URI from the logs and run it via Postman but I'm getting an authentication error. Is there a way to do that? If yes, what auth method would I use that would allow me to plug in my email address/password? |
At first glance the only difference I notice is that your srcSysCd value is different. I'm not sure what that actually is but mine is "CIM" and yours is "ISU". And just to make sure, that account number matches the account number on the account with the gateway? You can definitely query these via Postman. To do authentication, you need to POST to That will return an access_token which you use for the other call with as a Bearer token. You might also save the cdp_internal_user_id value. To get your sysSysCd value, you can GET to Maybe there is something in your responses that gives insight into what is different between us. |
Here's something to try if you get Postman up and running On that However I suspect there are 2 more possible parameters, bpNumber and srcAcctId2. Both are available on that |
Thanks for the integration; mine is giving error "failed to set up" This error originated from a custom integration. Logger: custom_components.duke_energy_gateway Could not identify a smart meter on your account with gateway access. |
Good info Michael! I think that helped find the solution. When I follow your Postman setup directions and query the Account Details using just email, SrcSysCd & SrcAcctId- I get an error. First one said something about my account not being setup. When I tried it just now, I get an internal server error: However, if I add the bpNumber that was returned by the sysSysCd call, I get a good result (shows a bunch of details about the account). I won't post it here because it has a lot of identifying information. If you want me to PM it to you, I can. |
I believe this is fixed in the newest release 0.0.7. I've also added some more logging in the event we need to debug this again in the future. Try updating in HACS and let me know if there are still issues |
Seems to be working great after updating to 0.0.7. Thanks again! |
I'm receiving this message in the logs:
Could not identify a smart meter on your account with gateway access
Any idea on how to address this one? Version 0.0.6. Details from log:
_This error originated from a custom integration.
Logger: custom_components.duke_energy_gateway
Source: custom_components/duke_energy_gateway/init.py:82
Integration: Duke Energy Gateway (documentation, issues)
First occurred: 10:09:06 AM (2 occurrences)
Last logged: 10:11:53 AM
Could not identify a smart meter on your account with gateway access._
The text was updated successfully, but these errors were encountered: