every time I restart openhab, it again asked me to push the binding button on the HUE bridge. After that it works fine until I restart the openhab process which forces me again to push the button.
I’m running on 1.8.0 Snapshot. before I was running on 1.7.0 and it worked fine.
actually I just noticed the same thing.
I think this might me related to the latest Hue bridge firmware update. My Hue bridge firmware was updated sometime last week to version 01028090. Can you check the firmware version running on your hue bridge?
Does anyone know if there a way to downgrade the firmware of the hue bridge? I would like to check if the firmware version is really the problem here…
this happens because openhab is looking for a String “error” in the JSON response from the bridge to determine if pairing is necessary or not. Unfortunately it seems as if the normal hue API response was extended in the latest firmware release by some “errorcode” parameter. This now triggers the pairing mechanism in openHAB.
I will make a pull request to fix this issue later today.
Hi,
it’s a little bit more work than I initially thought. I am afraid I’ll need another day to finish this. Will let you know as soon as the pull request has been created
By the way, if your openHAB is already authorized, you don’t need to push the button even though the message is displayed in the log. It should still be working. The “bug” here is basically that the message is displayed even though it is not needed.
@dominicdesu The Hue binding has lost its connection again. Any chance that this error can be fixed for 1.7.1? @teichsta When will 1.8.0 be released? I like to only use apt-get for my updates.
A minute ago it said:
$ sudo apt-get update && sudo apt-get upgrade
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
@digineut, as 1.7.1 is already released, I doubt that any further changes can be added. Please also note that above pull request is not part of 1.7.1.
The behaviour you describe is quite mysterious. openHAB uses the hue secret configured in openhab.cfg and checks if a user with this secret is already authorized on the bridge. If not, is will ask you to press the pairing button. When pressed, the secret should be saved on the hue bridge, so that next time openHAB connects to the bridge, the authorization will be successful.
I assume you didn’t change the secret or reset the hue bridge when you rebooted the server?
@digineut, you could also try if you can access the hue bridge from the browser next time openHAB tells you the bridge is not paired. Just use this link: http://<bridgeIP>/api/<yourOpenHABsecret>/
If the link returns an error, it’s likely an issue with the bridge, if the link returns the state of your hue system, something with the binding does not work correctly.
Answering your question, you can delete a user the following way:
Go to: http://<bridgeIP>/debug/clip.html, insert the following as URL: /api/<username>/config/whitelist/<username2> and select DELETE. This will delete username2 (More details on this here)
I just set up OpenHAB 1.7.1 and paired it with my Hue bridge, and did indeed run into the same problem as the original poster; however it seems to be purely a cosmetic issue. All the Hue related things work just fine, even though the service keeps nagging about the button push.
Could you update to the latest nightly build of the hue binding, enable DEBUG or TRACE logging for the hue binding and post the logs when the issue happens again?