mindmelting / hass-powerpal

Home Assistant custom integration to fetch data from Powerpal
MIT License
44 stars 11 forks source link

How to obtain authorisation key #7

Closed cdouet closed 2 years ago

cdouet commented 2 years ago

Is your feature request related to a problem? Please describe. It seems very difficult to obtain the authorisation key.

Describe the solution you'd like Please provide a solution on how to obtain this authorisation key simply

mindmelting commented 2 years ago

Hi @cdouet - please see this article which provides an unofficial method for obtaining an authorisation key https://forfuncsake.github.io/post/2021/08/owning-my-own-powerpal-data/

mindmelting commented 2 years ago

I will close this for now - but any questions please ask

jay-oswald commented 2 years ago

Just leaving this here for anyone else who finds this trying to get their API key. For those of you in the Beta, you can get your key from the Guidence tab, down the bottom. If you don't see it straight away just wait a bit, takes them time to activate the beta in the app after you have signed up and accepted.

kineticscreen commented 2 years ago

Just leaving this here for anyone else who finds this trying to get their API key. For those of you in the Beta, you can get your key from the Guidence tab, down the bottom. If you don't see it straight away just wait a bit, takes them time to activate the beta in the app after you have signed up and accepted.

Any more detail on this? What beta? Is the API key different to the token that is in the 'download your data' link? How long is the API key?

Hufflepuff-source commented 2 years ago

Any update on this? I tried to sign up to the beta program but keeps saying it’s at capacity and not allowing any new members. The link to the guide posted seems very brief and doesn’t really cover how to extract the API key for someone who is new to this.

mindmelting commented 2 years ago

Hey, sorry just seen these comments.

If you are in the Beta, as mentioned above there is a nice simple way to fetch an API key.

If you are not, it's more complex and involved as per the guide in the link above.

The token to download csv - is different from the API token (so I believe)

Let me see if there is any other ways to fetch an API key...

mindmelting commented 2 years ago

It should be pretty accurate - as noted in the Readme - the API is "near real time" so updates every 30 seconds, where as in the app it is less than that.

If you check a days usage - they should match pretty well.

corty8 commented 1 year ago

how do I get an API if I am not in the BETA program?

I have looked at the guide above and it seems to only have details on IOS and the only apple in the house is a granny smith :)

mindmelting commented 1 year ago

@corty8 - you should also be able to do something similar on Android by popping in a proxy