Hi,
Recently i’ve recived a Philips Hue Starter Kit, but only the white, because everything else was a bit to expensive…
Annyway, after a bit of reading and trying I got it working, but only for one of three Bulbs. But I did everything the same way for every Bulb, or at least I think so.
I’m using Hue devices also but used PaperUI for setup. Went smooth and everything is working correctly and I’d suggest you to do the same. But if you want to do it with config files here’s a few questions to get started:
What is “Serialnumber”? If I have understood the docs correctly this an ID number which should be the same in your item config.
Was the authentication successfull? Can’t see any userName config option after your ip number.
Have you confirmed that all the other bulbs are working correctly? For example with Hue app in your smartphone?
What does the logs say? Have you turned on debug logging?
I also understood it that way, but with the 1 with it beeing the first Bridge, I think, it isn’t working. But if I copy the Serialnumber given by paper UI it is at least able to controll the Sofa Bulb.
I didn’t set anny Login information for Hue, so I wouldn’t know what to type there.
With Hue App and thru Paper UI every Bulb is working, so I think everything is fine with the Bulbs.
I tried it “the coding way” because it is the only way so far I found to setup sitemaps for the App. Im still pretty new to openHAB, but givin my best to read the documentation first
To the Logs, there are no Errors printet, but if I change the Bulbs thru the Hue App it is printing:
2018-11-08 23:36:16.630 [vent.ItemStateChangedEvent] - hue_0100_001788670b30_Lampe_Essbereich_Decke_brightness changed from 11 to 100
2018-11-08 23:36:16.662 [vent.ItemStateChangedEvent] - Lampe_Sofa_Decke_Dimmer changed from 22 to 100
And if I flipp the switch in the openHAB App it is printing:
2018-11-08 23:36:31.186 [ome.event.ItemCommandEvent] - Item 'Lampe_Essbereich_Decke_Toggle' received command ON
2018-11-08 23:36:31.208 [vent.ItemStateChangedEvent] - Lampe_Essbereich_Decke_Toggle changed from OFF to ON
2018-11-08 23:36:34.734 [ome.event.ItemCommandEvent] - Item 'Lampe_Essbereich_Decke_Toggle' received command OFF
2018-11-08 23:36:34.748 [vent.ItemStateChangedEvent] - Lampe_Essbereich_Decke_Toggle changed from ON to OFF
Ok, thanks, will have a look on it, when I’m Home.
From a first look I see, that you have a userName written there. Where do I find my username, because I don’t remember adding one, while configuring Hue.
After saving your hue.things file you have look at logs. It asks you to press the pairing button on your hue bridge.
==> /var/log/openhab2/openhab.log <==
2018-11-09 13:10:08.613 [INFO ] [binding.hue.handler.HueBridgeHandler] - Creating new user on Hue bridge 192.168.X.X- please press the pairing button on the bridge.
After pressing the pairing buttons again watch your logs
==> /var/log/openhab2/openhab.log <==
2018-11-09 13:10:28.674 [INFO ] [binding.hue.handler.HueBridgeHandler] - User 'blahblahblahXHasdhasdg' has been successfully added to Hue bridge.
And theres your username.
FYI looks like that the “Serialnumber” part in hue thing configuration can be anything. I tried “livingroom” and it works. I initially thought that it had to be a number:
Ok, at first, for some reasen the Hue bridge in the PaperUI now went from “Online” to “UNINITIALIZED - HANDLER_MISSING_ERROR” didn’t know I changed something while I was away, but annyway.
Unfortunatley if I safe the .things file again it is saying nothing but updated the hue.things and if I press the button unfortunatley nothing is happening too.
I then tried to get a Username with the Ip-Adress/debug/clip.html and copy pastet the username from there, but it is also not working.
Maybe I should just get rid of the Binding and every File and start all over again? And try to make every step “the right way” now?
You can try deleting all related files and restarting oh. Might be a good option to delete tmp and cache also while doing a restart. After that you can start from scrach.
Well…
While resetting the Philips Hue binding and deleting the Cach I somehow managed to destrox something on the Pi. Or it was just bad Timing.
Unfortunetly I’m not Home this weekend so there is no time to search for the Error…
But I will write here if I get it to work eventually.