Pairing hue bridge with textual configuration

Hi,

currently I am testing the migrating to OH2 with a test installation of the latest beta. My goal is, to configure OH2 just with text files, avoiding the Paper UI as this seems to make backup, revision control and transfering the configuration much easier.

I tried to setup my hue bridge, as described in the documentation, by adding the described things file. After starting openHAB2 I find the message to press the switch on the hue bridge in the logs, but nothing happens when pressing the switched, I tried it several times.

The bridge is found within the Paper UI, if I add it there and press the the button a new user name is printed on the logs, but I not with configuring only with the text file.

The bridge runs the latest firmware, installed a few days ago.

Am I missing something?

BTW: Does anybody know, how many users I can authenticate with the bridge and how to remove “old” user?

Thanks for your help!

Juelicher

Does this help you?

Unfortunately not. I created the things file, as described in the article:

Bridge hue:bridge:1 [ ipAddress="ip=192.168.111.40"] {
    0210 bulb1 [ lightId="1" ]
    0210 bulb2 [ lightId="2" ]
    0210 bulb3 [ lightId="3" ]
    0210 bulb4 [ lightId="4" ]
}

When starting openHAB2 the message to press the button is written to the log, but no reaction whatsoever when pressing the button on the bridge. The button is OK, I paired the bridge with the new Hue app a few days ago.

I meant this section:

A user to authenticate against the Hue bridge is automatically generated. Please note that the generated user name cannot be written automatically to the .thing file, and has to be set manually. The generated user name can be found in the log files after pressing the authentication button on the bridge. The user name can be set using the userName configuration value, e.g.:

Bridge hue:bridge:1 [ ipAddress="192.168.0.64", userName="qwertzuiopasdfghjklyxcvbnm1234" ]

You do not seem to have a userName specified.

I have not seen a user name in the log file, I assumed it would be generated after pressing the button.

To make sure, I have not overseen it, I just tested it again. The only log messages I get regarding the hue bridge are the following:

2016-09-22 23:20:31.666 [INFO ] [binding.hue.handler.HueBridgeHandler] - Creating new user on Hue bridge ip=192.168.111.40 - please press the pairing button on the bridge.
2016-09-22 23:20:31.670 [WARN ] [binding.hue.handler.HueBridgeHandler] - Failed creating new user on Hue bridge
java.net.UnknownHostException: ip=192.168.111.40
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)[:1.8.0_25]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.8.0_25]
	at java.net.Socket.connect(Socket.java:589)[:1.8.0_25]
	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)[:1.8.0_25]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)[:1.8.0_25]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)[:1.8.0_25]
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)[:1.8.0_25]
	at sun.net.www.http.HttpClient.New(HttpClient.java:308)[:1.8.0_25]
	at sun.net.www.http.HttpClient.New(HttpClient.java:326)[:1.8.0_25]
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1167)[:1.8.0_25]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)[:1.8.0_25]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)[:1.8.0_25]
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:931)[:1.8.0_25]
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1281)[:1.8.0_25]
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1256)[:1.8.0_25]
	at nl.q42.jue.HttpClient.doNetwork(HttpClient.java:45)[197:org.eclipse.smarthome.binding.hue:0.9.0.201609151119]
	at nl.q42.jue.HttpClient.post(HttpClient.java:24)[197:org.eclipse.smarthome.binding.hue:0.9.0.201609151119]
	at nl.q42.jue.HueBridge.link(HueBridge.java:710)[197:org.eclipse.smarthome.binding.hue:0.9.0.201609151119]
	at nl.q42.jue.HueBridge.link(HueBridge.java:701)[197:org.eclipse.smarthome.binding.hue:0.9.0.201609151119]
	at org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler.createUserOnPhysicalBridge(HueBridgeHandler.java:329)[197:org.eclipse.smarthome.binding.hue:0.9.0.201609151119]
	at org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler.createUser(HueBridgeHandler.java:317)[197:org.eclipse.smarthome.binding.hue:0.9.0.201609151119]
	at org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler.onNotAuthenticated(HueBridgeHandler.java:305)[197:org.eclipse.smarthome.binding.hue:0.9.0.201609151119]
	at org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler$1.run(HueBridgeHandler.java:134)[197:org.eclipse.smarthome.binding.hue:0.9.0.201609151119]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_25]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_25]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_25]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_25]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_25]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_25]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_25]

java.net.UnknownHostException

Are you sure you are on the right network…?

Yes, I can ping the bridge and when entering http://192.168.111.40/debug/clip.html into the browser I get the API debugger. Just checked it with copying the address to make sure, I have no typo.