Giter Club home page Giter Club logo

Comments (27)

benjeh32 avatar benjeh32 commented on June 23, 2024 2

+1 here. Hub serial (exactly as it appears on the base of the hub and which was successfully used to set things up) plus my myenergi account password fails login when setting up the integration. I have tried resetting this password both from the app as well as from the web.

The only password I have is my account password. I had my Zappi installed today and when setting up the app (Android, for what it is worth) I only had to create a myenergi account with email/password. That combination also logs me in to https://myaccount.myenergi.com. As we added the Hub into the app the installer said "you will have to choose a password" but the app did not ask us for this and everything has been working fine without one (until trying to use the API of course).

I tried to directly authenticate using pymyenergi (in case it was an integration issue) but login still fails. Debug logs from pymyenergi (user/pass is set up in ~/.myenergi.cfg):

>myenergi -d list
DEBUG:pymyenergi.client:Refreshing data for all myenergi devices
DEBUG:pymyenergi.connection:Get Myenergi base url from director
DEBUG:httpx._client:HTTP Request: GET https://director.myenergi.net/cgi-jstatus-E "HTTP/1.1 401 Unauthorized"
DEBUG:httpx._client:HTTP Request: GET https://director.myenergi.net/cgi-jstatus-E "HTTP/1.1 401 Unauthorized"
INFO:pymyenergi.connection:Updated myenergi active server to https://s18.myenergi.net
DEBUG:pymyenergi.connection:GET /cgi-get-app-key- https://s18.myenergi.net/cgi-get-app-key-
DEBUG:httpx._client:HTTP Request: GET https://s18.myenergi.net/cgi-get-app-key- "HTTP/1.1 401 Unauthorized"
DEBUG:httpx._client:HTTP Request: GET https://s18.myenergi.net/cgi-get-app-key- "HTTP/1.1 401 Unauthorized"
DEBUG:pymyenergi.connection:GET status 401
Wrong username or password

from ha-myenergi.

mjdyson avatar mjdyson commented on June 23, 2024 2

A brand new user here (installed on Friday). I have been struggling to set up the integration until I received an API key from myenergi. Username was the hub serial (without the hub prefix), password was the API key.

See post
https://myenergi.info/api-keys-t5185.html

from ha-myenergi.

G6EJD avatar G6EJD commented on June 23, 2024

Things to check:
If using an iPhone it usually adds a space to the Username and or password, check your credentials.
Using the new App 2.0 reset your password.
Using the Hub Number?

from ha-myenergi.

mimikm avatar mimikm commented on June 23, 2024

Tried as above. Still no luck. Credentials ok. Changed email, password.

from ha-myenergi.

G6EJD avatar G6EJD commented on June 23, 2024

And using the Hub serial number?

from ha-myenergi.

colinhatfield avatar colinhatfield commented on June 23, 2024

I get the same error when setting up: "Username/Password is wrong."

I've tried both my username (E-mail address) and the hub serial, I'm using the password that I've just successfully logged into https://myaccount.myenergi.com with.

Any advice?

from ha-myenergi.

mimikm avatar mimikm commented on June 23, 2024

And using the Hub serial number?

Absolutely, tried all combinations

from ha-myenergi.

G6EJD avatar G6EJD commented on June 23, 2024

Did you restart HA via he restart Host?

what is the error log saying?

from ha-myenergi.

mimikm avatar mimikm commented on June 23, 2024

I have installed integration through HACS, restart, then added integration through UI, then "Username/Password is wrong."

Logs say nothing apart from:
2022-02-21 12:10:18 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration myenergi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

from ha-myenergi.

spirit8000 avatar spirit8000 commented on June 23, 2024

Hi. I'm having the same issue with v0.0.17. Email and password definitely correct, no issue logging in to iPhone app or via a browser. Behaviour seems to be the same as described here: "https://myenergi.info/viewtopic.php?p=46485#p46485". Tried reinstalling the myenergi integration via HACS several times, both v0.0.16 and v0.0.17. Restarts in between. Installation successful each time, same username/password error every time. I've also changed to a different email account and reset the password.

Can you actually log in with the hub serial number? Appreciate this may have been the case in the past, having only got the hub a couple of days ago, but if you try to log in to https://myaccount.myenergi.com/ there is only an email address option, same for the current iPhone app. So I wonder if their authentication has changed / is changing? Or equally perhaps I'm missing something.

Happy to provide logs, test stuff, fudge code etc. Cheers!

from ha-myenergi.

G6EJD avatar G6EJD commented on June 23, 2024

Have you tried the manual install method in the readme?

from ha-myenergi.

mimikm avatar mimikm commented on June 23, 2024

Have you tried the manual install method in the readme?

In logs
2022-02-21 15:21:46 ERROR (SyncWorker_1) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/myenergi/manifest.json: Expecting value: line 7 column 1 (char 6)

when I try add integration in UI:

Error Config flow could not be loaded: [object Object]

from ha-myenergi.

spirit8000 avatar spirit8000 commented on June 23, 2024

Have you tried the manual install method in the readme?

Hi, I've just tried the manual installation. The installation seemed fine but still the same behaviour when trying to log in with the myenergi creds, both using email or hub serial number.

Just to confirm I removed the HACS installation first, restarted, and did a restart following copying the folder in manually.

Is there any further information I can provide to help trouble shoot, or anything else I can try at this point?

from ha-myenergi.

CJNE avatar CJNE commented on June 23, 2024

The username to use is the hub serial number, it will not work with an email address.
The password does not have to be the same as you use for the "myenergi account" login.
It's the password you created when setting up the app for the first time.

Installation method should not make a difference, I suspect it's just that the wrong username and password is being used.

from ha-myenergi.

mimikm avatar mimikm commented on June 23, 2024

The username to use is the hub serial number, it will not work with an email address. The password does not have to be the same as you use for the "myenergi account" login. It's the password you created when setting up the app for the first time.

Installation method should not make a difference, I suspect it's just that the wrong username and password is being used.

Unfortunately, nothing works.
Old or new password. Unless the password is a registration code from Zappi charger, but that doesn't work either

from ha-myenergi.

spirit8000 avatar spirit8000 commented on June 23, 2024

The username to use is the hub serial number, it will not work with an email address. The password does not have to be the same as you use for the "myenergi account" login. It's the password you created when setting up the app for the first time.

Installation method should not make a difference, I suspect it's just that the wrong username and password is being used.

Hi,

Thanks for the reply, appreciate you taking the time.

Understood ref the hub serial number, I've tried with that, copy and paste straight from my myenergi account and checked for spaces before or after.

I'm confused about the password though. The app logs in with the same password as I'd use for https://myaccount.myenergi.com/login. I've just reset it from my phone as a test (using the myenergi IOS app, v2.0.7), then logged in to https://myaccount.myenergi.com/login with the new password from a browser on my laptop. That works fine, but then retried the integration setup and still get the "Username/Password is wrong." error using the serial number (8 digit numeric) and new password.

Where you say "It's the password you created when setting up the app for the first time." - I don't remember setting any other password initially, plus I've just reset it with the app. Are we talking about the same app?

from ha-myenergi.

spirit8000 avatar spirit8000 commented on June 23, 2024

Incidentally, the current app and the current website don't allow logging in using the hub ID, only the email address.

Also, in October 2021, I've noticed this comment from a myenergi representative in their forum:

"We're working hard to get rid of the app password so there is just the myenergi account, with the option for a self service password reset.
It's close but..."

https://myenergi.info/registered-hub-password-now-invalid-cannot-access--t940.html

People reporting similar problems here: https://myenergi.info/viewtopic.php?p=46485#p46485

I'm quite confident I didn't have to set a password. Is it possible the service behind has changed / is changing at least for new users like myself?

from ha-myenergi.

G6EJD avatar G6EJD commented on June 23, 2024

What is the logbook reporting, if there was a username password error it would be reported there?

from ha-myenergi.

mimikm avatar mimikm commented on June 23, 2024

What is the logbook reporting, if there was a username password error it would be reported there?

Are we talking about HA log? Nothing there, unfortunately.

from ha-myenergi.

nabjoern avatar nabjoern commented on June 23, 2024

Unfortunately I have the same problems as spirit8000 and mimikm. Today I activated the hub and updated my zappi. It all worked without any problems.
Unfortunately, I can't get them integrated in HA. Also get the error:
Username/Password is wrong.

from ha-myenergi.

G6EJD avatar G6EJD commented on June 23, 2024

Are you using just the Hub serial number excluding the prefix? A12345678 is 12345678

from ha-myenergi.

mimikm avatar mimikm commented on June 23, 2024

Are you using just the Hub serial number excluding the prefix? A12345678 is 12345678

Yes, happy to arrange zoom call for example so you can try it yourself. maybe it will give you an idea.

from ha-myenergi.

CJNE avatar CJNE commented on June 23, 2024

It starts to sound like they might have changed something for new accounts...
I will try to reach out to them on the forum and see if we can get some clarification.

from ha-myenergi.

CJNE avatar CJNE commented on June 23, 2024

This might be a clue:
https://myenergi.info/myenergi-app-version-2-0-x-t5070.html?sid=d5b780cf1b023c1cd02a14f1b6b1a7ba

from ha-myenergi.

nabjoern avatar nabjoern commented on June 23, 2024

Tried it again today. Restarted everything etc. Still not working. Hope it will be fixed sometime soon :-)

from ha-myenergi.

CJNE avatar CJNE commented on June 23, 2024

I posted in the forum asking for advice. It might help to pitch in there so that they see that it's a real problem: https://myenergi.info/viewtopic.php?p=48889#p48889

from ha-myenergi.

CJNE avatar CJNE commented on June 23, 2024

A brand new user here (installed on Friday). I have been struggling to set up the integration until I received an API key from myenergi. Username was the hub serial (without the hub prefix), password was the API key.

See post https://myenergi.info/api-keys-t5185.html

Thanks for the info! I think this issue is resolved, will update the docs.

from ha-myenergi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.