Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api error 1: unauthorized user #50

Closed
pdenissen opened this issue Jun 6, 2022 · 2 comments
Closed

api error 1: unauthorized user #50

pdenissen opened this issue Jun 6, 2022 · 2 comments
Labels
question Further information is requested

Comments

@pdenissen
Copy link

Hi @ebaauw ,

I'm trying to setup my Raspbee II in Homebridge. With some struggles I have my Raspbee working and I'm able to add switches and lights in the Phoscon GUI. So that's great.

Now I'm trying to connect the "Homebridge Deconz" plugin but somehow I'm not getting it connected to the API.
In the log console I'm getting the error:
[deCONZ] Phoscon-GW: warning: request 14: api error 1: unauthorized user

My config looks like this:

{
    "name": "deCONZ",
    "hosts": [
        "192.168.68.114:4530"
    ],
    "platform": "deCONZ"
}

I'm not sure how or where to set "Expose". (Set Expose on the Gateway Settings service of the gateway accessory to retry obtaining an API key)
How does this work?

I hope you can help me out on this.

Thank you very much.

@ebaauw
Copy link
Owner

ebaauw commented Jun 6, 2022

The message is weird, in that it would occur only if Homebridge deCONZ uses an old API key (user) that has since been removed from deCONZ.

You need to look at the Gateway accessory in a decent HomeKit app, like Eve. Best unset Expose (that should clear the old API key), and, after a half a minute or so, set it again. Homebridge deCONZ will ask you (in the log) to unlock the gateway, so it can obtain a new API key.

@ebaauw ebaauw added the question Further information is requested label Jun 6, 2022
@pdenissen
Copy link
Author

Hi @ebaauw ,

Yes, that works! I have installed the Eve app on my phone and unset the Expose option. After a few minutes I enabled all Expose options in the Eve app. After a minute or what Homebridge starting to obtain the API keys.

Thanks a lot for your help! Keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants