CJNE / pymyenergi

An async python library for interfacing with MyEnergi devices
MIT License
19 stars 15 forks source link

fetch_data() throws exception "pymyenergi.exceptions.WrongCredentials" when password and email are correct #21

Closed Hanzanka closed 6 months ago

Hanzanka commented 6 months ago

When running your example script with my password and username it throws en exception WrongCredentials. This also happens with the cli.

G6EJD commented 6 months ago

Are you using an API key obtained from the ME web portal?

Hanzanka commented 6 months ago

I wasn't. But now I got the api keys for both, zappi and the hub, but I still hasn't get it to work.

G6EJD commented 6 months ago

Then your username is incorrect

Hanzanka commented 6 months ago

I didn't realise I have to use hub's SN as username, so I got it working now...

G6EJD commented 6 months ago

You can close this now!