I have been using openHab for a while now with my hue bulbs amongst other things. In order to set up my Alexa skill, I’d like to take over manual control for my hue items instead of configuring them through the Paper UI so that I can assign room groups, etc.
Therefore, I’ve removed all things, items, and the old bridge. Then I added a new .things that looks like this:
Bridge hue:bridge:1 [ ipAddress="192.168.20.2"] {
0100 bulbB [ lightId="4" ]
0210 bulbC [ lightId="2" ]
0100 bulbH [ lightId="5" ]
0100 bulbK [ lightId="3" ]
0210 bulbL [ lightId="1" ]
}
As soon as I save the file, I can see in the log file that I am requested to press the pairing button. I press the button and a new user is generated and displayed to me. At that point in time, the bridge is working.
Now, I need to make the user name setting persistent by adding it to the configuration file:
Bridge hue:bridge:2 [ ipAddress="192.168.20.2" userName="xxx"] {
As soon as I save the file, the binding starts the process all over again by creating a new user and asking me to press the button. I tried simply not adding a user but then things don’t work as soon as I restart openhab.
What am I doing wrong?