JeremyDunn / homebridge-govee-water-detectors

MIT License
6 stars 0 forks source link

Authentication method changed #4

Open androwis opened 3 years ago

androwis commented 3 years ago

It looks like Govee has changed the way you login and I’m unable to get an api token. Is this still working for you? I cannot get this plugin to work on my end now

schwaggy commented 3 years ago

Same here. Their site is very different now and there's no token to be found. Hopefully @JeremyDunn can work some magic and get these sensors recognized by Homebridge again! [5/5/2021, 11:14:08 AM] [HomebridgeGoveeWaterDetectors] Could not retrieve device list. Check your API token.

bwp91 commented 3 years ago

I don’t think any process has changed, i think you just need to get a new api token.

i have just installed this plugin and managed to successfully get a device list (i don’t have any leak sensors but with some tweaking my led light strip was retrieved)

androwis commented 3 years ago

@bwp91

I don’t think any process has changed, i think you just need to get a new api token.

i have just installed this plugin and managed to successfully get a device list (i don’t have any leak sensors but with some tweaking my led light strip was retrieved)

I am able to get an API Key easily, but can you detail how you're getting an API Token?

bwp91 commented 3 years ago

If you're happy putting your govee email/password into a website like https://reqbin.com, you can

In the right hand box you should see something like:

{
    "message": "Login successful",
    "status": 200,
    "data": {
        "token": "THIS-IS-THE-TOKEN-YOU-NEED",
        "headerUrl": "%%%",
        "nickName": "%%%",
        "id": 000,
        "expiredAt": 000,
        "email": "%%%"
    }
}
androwis commented 3 years ago

This is great, I was able to CURL the values. If anyone has the bandwidth to automate the re-authentication for this app, I think this would be super valuable for everyone using this