Deconz-rest-plugin: Getting API key without lightbulb

Created on 30 Nov 2018  ·  3Comments  ·  Source: dresden-elektronik/deconz-rest-plugin

  • I installed the following deCONZ:
    deconz/raspbian/deconz-latest.deb 29-Nov-2018 23:30 4.7M
    (For my ODROID-C1 I had to make a fake empty apt package that
    provides wiringpi so it wouldn't complain)

  • started it with deCONZ -platform minimal

  • and started doing the REST Getting Started. I see that to get an API key I need to press a UI button.
    (I am successfully getting the 403)

When I go to http://<IP>:<80>, I initially get a "Wireless Light" page with only a navbar, but then it quickly redirects to http://<IP>/pwa/login.html

If I use this PWA to connect to the deCONZ, and set a password as prompted, it puts me to
http://<IP>/pwa/commissioning.html?1543526405000, which doesn't allow me to continue without connecting a device first.

What's the url of the Unlock Gateway button? Can I hit it without completing "commissioning"?
Better yet, can I get an API key locally on the deCONZ machine, without exposing the API key generation API to the whole hostile network for a whole minute?

I just want my API key :sob:

Most helpful comment

I just want my API key

To jump over commissioning page open http://<IP>/pwa/settings-gateway.html

We will introduce a skip button in future versions.

All 3 comments

I just want my API key

To jump over commissioning page open http://<IP>/pwa/settings-gateway.html

We will introduce a skip button in future versions.

Thanks!
I worked around it by jumping to http://<IP>/login.html instead :)
(which didn't cause the redirect, so I could log into old app)

Do you happen to know how deCONZ detects and uses the /dev/ttyUSB0 device?
I am trying to pass it to a different machine over ser2net.

The USB devices are enumerated by Qt classes and and filtered by vendor/product id.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

salopette picture salopette  ·  4Comments

tenholde picture tenholde  ·  3Comments

philko123 picture philko123  ·  3Comments

ScharV picture ScharV  ·  5Comments

1onar picture 1onar  ·  5Comments