[SOLVED] OH2.4 Hue binding - user name does not appear to log file after bridge thing is added and authorization button is pressed

I bought a new Hue Bridge and tried in many different ways to integrate this bridge to my OH 2.4 installation.

The problem is, that the bridge thing requires the generated user name which should be shown in the log, but there is no user name shown,
Its looking all the time like this:

    2018-12-13 20:17:58.030 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'hue:bridge:001788b32eb0' to inbox.
    2018-12-13 20:18:15.185 [WARN ] [ue.internal.handler.HueBridgeHandler] - User name for Hue bridge authentication not available in configuration. Setting ThingStatus to offline.
    2018-12-13 20:18:15.692 [WARN ] [ue.internal.handler.HueBridgeHandler] - User name for Hue bridge authentication not available in configuration. Setting ThingStatus to offline.
    2018-12-13 20:18:16.032 [INFO ] [ue.internal.handler.HueBridgeHandler] - Creating new user on Hue bridge 192.168.178.146 - please press the pairing button on the bridge.
    2018-12-13 20:18:16.047 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'hue:bridge:0017880ae670' to inbox.
    2018-12-13 20:18:16.074 [INFO ] [ue.internal.handler.HueBridgeHandler] - Creating new user on Hue bridge 192.168.178.146 - please press the pairing button on the bridge.
    2018-12-13 20:18:16.091 [INFO ] [ue.internal.handler.HueBridgeHandler] - Creating new user on Hue bridge 192.168.178.146 - please press the pairing button on the bridge.
    2018-12-13 20:18:16.184 [WARN ] [ue.internal.handler.HueBridgeHandler] - User name for Hue bridge authentication not available in configuration. Setting ThingStatus to offline.
    2018-12-13 20:18:16.198 [WARN ] [ue.internal.handler.HueBridgeHandler] - User name for Hue bridge authentication not available in configuration. Setting ThingStatus to offline.
    2018-12-13 20:18:16.703 [WARN ] [ue.internal.handler.HueBridgeHandler] - User name for Hue bridge authentication not available in configuration. Setting ThingStatus to offline.

The last “User name for Hue bridge authentication not available in configuration. Setting ThingStatus to offline.” remains endless and the bridge is offline of cause.

How can I find the aproriate user name to close the configuration of the binding and make the bridge working.

I removed the bridge may times - also in combination of restart, reboot and cleaning the cache. Its OH 2.4 nightly 2.4.0-SNAPSHOT, Build #1451, the bridge is updated to the last firmware 1810251352 and is working well with the app outside of openhab.

Guys, how could I overcome this issue…?

Best regards Kay

Same issue here, 2.4 Milestone Build M8
Even setting the log level to DEBUG did not solve it.

I found a workaround on youtube: OpenHab Tutorial 5.1 (Deutsch) Philips Hue

  • Take your browser, open <your-huebrige-ip>/debug/clip.html
  • The Clip API Debugger opens.
  • Enter /api in the url field
  • Enter {"devicetype":"openhabhuebinding#openhab"}
  • Press the pairing button on the bridge, then press “POST” in the debugger
    A JSON answer will appear, containing the cryptic user name value.
  • Now take the username and enter it in the hue bridge configuration in PaperUI.

This will bring the bridge online in OpenHAB.

Hope this helps someone,
Oggerschummer

1 Like

Hi all,

thanks for reporting this behavior. I did some last minute research on it and proposed a bugfix (see https://github.com/eclipse/smarthome/pull/6685).

Thanks.

1 Like

Many thanks to @Oggerschummer - that did the trick. Maybe I need to search more in youtube…