RaspBee binding compatibility

How can I get the compiled bundle? I’ve tried to build your whole repository, but the zip-files doesn’t contain the raspbee bundle. Is it right, that this bundle only works with openHAB2?

thanks for help!
Haiko

Hi @fatihboy,

I got the binding compiled, though I had to add the ESH-INF folder to the build to get the binding. I’ve added the bridge but it wants an IP/port/username/serial # and I’m not really sure what to put in here. Am I correct in understanding that this still requires Dresden Elektronik’s http API? I was actually hoping it would talk to the Raspbee board directly replacing that software rather than utilizing it.

The docs are a bit light and look like they weren’t edited much from the Hue fork. Any further hints to get it set up?

TIA, Peter

Hi @poehlert,
It uses Dresden Elektronik’s http API, so you need to have deCONZ REST API in your Raspberry Pi box. I didn’t choose to replace the rest api, cause it comes with extra development cost, as well as, You need to have OpenHab 2 on the same box.

Please find sample config below;

raspbee.things
`Bridge raspbee:bridge:1 [ ipAddress=“IP_ADDRESS_HERE”, port=“80”, userName=“USER_NAME_HERE” ] {
LCT001 salon1 [ lightId=“1” ]

LWB006 koridor [ lightId="4" ]

}
`

raspbee.items
Color light_salon_1 { channel="raspbee:LCT001:1:salon1:color" } Dimmer light_koridor "Koridor" { channel="raspbee:LWB006:1:koridor:brightness" }

Hi @fatihboy

I’m trying to control Osram A60 bulbs with openhab2 and a raspberry pi 3 with a raspbee gateway.
With the webapp from Dresden Elektronik I have no problems to change color and brightness.
I have installed the raspbee binding and folowed your instructions and example code on github.
When I open the Paper UI, I’m able to see the items (Light and Light_ColorTemp), but I don’t see any things.
In the Basis and Classis UI all looks fine, but I’m not able to control the bulbs.
Do you have any idea why I can’t see anything in the things index tab?

Thank you in advance for your reply.
Christian

Can you give me detailed instructions how to get this binding work with openhab2 ? Iam not so much into this topic. Thanks for your help.

With the latest Raspbee firmware installed, Raspbee mimics Hue Api through port 80. Also latest bits of hue binding have better thing types (grouped by light properties exposed, instead of brands…). So, if you did not change its default settings, you could use Hue binding shipped with OpenHab 2.

Hope that helps

1 Like

i got it running on my system.

important is to allow the api access and configure the item in OH2.

http://dresden-elektronik.github.io/deconz-rest-doc/getting_started/

i think this topic is soved

Hi,

I’ve tried a lot but without any success. With the hue binding I got the following error messages:

2017-03-05 10:04:59.172 [INFO ] [binding.hue.handler.HueBridgeHandler] - Creating new user on Hue bridge 192.168.2.192 - please press the pairing button on the bridge.
2017-03-05 10:04:59.180 [WARN ] [binding.hue.handler.HueBridgeHandler] - Failed creating new user on Hue bridge
java.net.ConnectException: Verbindungsaufbau abgelehnt (Connection refused)...

The gateway is unlocked but it looks like the api call is maybe wrong. I’ve used wireshark to look to the calls without success.

Could someone send me the compiled jar file for this binding?

thanks Andreas

Found this while encountering the same problem. Fixed it by using ARC(REST plugin for chrome) to send a api request to the rest api in deconz (described above link: http://dresden-elektronik.github.io/deconz-rest-doc/getting_started/ don’t forget to unlock in deconz ui) and paste the username in the username field in the hue bridge thing in paperui.

Hi!
Could you pls make the compiled result available?!!
Could you run all on the same hardware?
Thanks
Micahel

Hi Peter,

can you please share a link that enabled you to compile the sources?
Thanks
Michael

Hi!

Does anyone know how to define as static the deCONZ ip address? The problem I have is that deCONZ are connecting to my static IP address after boot. As deCONZ boots quicker than OpenHAB2, this one is addressing a random IP.

Thanks!

Hi again,

the problem remains and I dont know what more to do. I have the problem that deCONZ and OpenHAB2 are connected by default to the same IP address but with different ports. I get this error when I try to configure the “Raspbee controller” with Hue Binding at Paper UI:

2017-07-28 02:23:20.459 [INFO ] [binding.hue.handler.HueBridgeHandler] - Creating new user on Hue bridge 192.168.42.100 - please press the pairing button on the bridge.
2017-07-28 02:23:20.471 [WARN ] [binding.hue.handler.HueBridgeHandler] - Failed creating new user on Hue bridge
java.io.FileNotFoundException: http://192.168.42.100/api/
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1872)[:1.8.0_131]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)[:1.8.0_131]
at org.eclipse.smarthome.binding.hue.internal.HttpClient.doNetwork(HttpClient.java:62)[189:org.eclipse.smarthome.binding.hue:0.9.0.201707190720]
at org.eclipse.smarthome.binding.hue.internal.HttpClient.post(HttpClient.java:36)[189:org.eclipse.smarthome.binding.hue:0.9.0.201707190720]
at org.eclipse.smarthome.binding.hue.internal.HueBridge.link(HueBridge.java:759)[189:org.eclipse.smarthome.binding.hue:0.9.0.201707190720]
at org.eclipse.smarthome.binding.hue.internal.HueBridge.link(HueBridge.java:750)[189:org.eclipse.smarthome.binding.hue:0.9.0.201707190720]
at org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler.createUserOnPhysicalBridge(HueBridgeHandler.java:340)[189:org.eclipse.smarthome.binding.hue:0.9.0.201707190720]
at org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler.createUser(HueBridgeHandler.java:328)[189:org.eclipse.smarthome.binding.hue:0.9.0.201707190720]
at org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler.onNotAuthenticated(HueBridgeHandler.java:314)[189:org.eclipse.smarthome.binding.hue:0.9.0.201707190720]
at org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler$1.run(HueBridgeHandler.java:139)[189:org.eclipse.smarthome.binding.hue:0.9.0.201707190720]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_131]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_131]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_131]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_131]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]

I think that the “http://IP/api” is the problem because the 2 programs are trying to address themselves the same. I dont know how to do for avoid that. Trying to add two different static IPs doesnt solve anything, deCONZ address all of the static IP automatically.

Thanks in advance if somebody know what to do.

I was able to add deCONZ as a hue bridge(thing), but only manualy with IP:port (as I use a non default port), then I was able to add lights (as things), again manually with their IDs. Everything is showing as ONLINE on the Paper UI Things section.
I was able to add Items for the lights (Color Temperature, Brightness) and all the controls are shown on the Control section, but none of the controls make any changes to the lights.

I have created a Deconz binding for real-time sensors and buttons (everything else is supported by the Hue binding already):

Cheers,
David

2 Likes

Hi, this sounds very cool… do you have any idea when the new bingings will be availible in openhab2 or do I need to build my own release to get access to your changes?
Actually I am using fhem and want to switch to openhab, therefore I am not very familiar with openhab…

Thanks and best regards
Jens

The binding is done and is waiting for a second review round. The guys are just busy at the moment, I guess.
But I’m very sure it will be in for OH 2.4 (this year).

You can download the addon jar file from

https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/binding/org.openhab.binding.snapcast/2.4.0-SNAPSHOT/

Search for the one that has “deconz” in it.

Great! Thanks, I will try to get it running :slight_smile:

Thanks for your effort! I already installed your Snapcast binding. Afterwards i tried to search for new things, without any finding. Do i have to configure your binding or do something else?
I am using the openHabian Image with deconz/raspbee installed. I already connected a working xiaomi door sensor to deconz and want to use it with openHab.

Thanks for your work!

@David_Graeff Do you have any plans for additional sensor types like humidity and air pressure?