I am running OpenHAB on a Raspberry 3
also i have running a ZigBee Gateway (RaspBee from Dresden Elektronik with deCONZ as Software) on it.
For using my Philips and Osram lights.
In the latest Beta Software from deCONZ they also emulates a Hue Bridge
so OpenHAB can find it with the hue Binding a i am got rid of the Bridge
deCONZ would like to run his own Webportal on Port 80 or 8080
see file: /usr/bin/deCONZ-autostart.sh
provide service on port 80
which setcap
OPTIONS="–auto-connect=1 --dbg-error=1"
if [ $? -eq “0” ] && [ “$OS_ID” == “raspbian” ]; then
# assume getcap also exists
caps=getcap /usr/bin/deCONZ
if [[ "$caps" == *cap_net_bind_service+ep* ]]; then
echo capabilities ok
else
sudo setcap cap_net_bind_service=+ep /usr/bin/deCONZ
echo set capability to open ports lower 1024
fi
OPTIONS+=" --http-port=80"
else
OPTIONS+=" --http-port=8080"
fi
so i have changed OPTIONS+=" --http-port=80" to OPTIONS+=" --http-port=9090"
ok deCONZ website runs now on 9090 while openHAB on 8080
until this its all no Problem…
But i also have other devices i would use with Amazon Alexa and so i have Installed the
Hue Emulation on the OpenHAB
In Settings i have Set the “Optional discovery address” to 192.168.1.235
and changed my “/etc/network/interfaces” so i have 2 IP-Adresses
Network for Simulated Philips Hue Bridge
auto eth0
iface eth0 inet static
address 192.168.1.235
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
Network for OpenHAB, Alexa and MQTT
auto eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
address 192.168.1.236
netmask 255.255.255.0
but now i Stuck on the following Error comes every 3 seconds in the openhab.log
2017-05-25 00:11:06.145 [ERROR] [tion.internal.HueEmulationUpnpServer] - Socket error with UPNP server
java.net.BindException: Die Adresse wird bereits verwendet (Bind failed)
at java.net.PlainDatagramSocketImpl.bind0(Native Method)[:1.8.0_121]
at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:93)[:1.8.0_121]
at java.net.DatagramSocket.bind(DatagramSocket.java:392)[:1.8.0_121]
at java.net.MulticastSocket.(MulticastSocket.java:172)[:1.8.0_121]
at java.net.MulticastSocket.(MulticastSocket.java:136)[:1.8.0_121]
at org.openhab.io.hueemulation.internal.HueEmulationUpnpServer.run(HueEmulationUpnpServer.java:98)[192:org.openhab.io.hueemulation:2.1.0.201705212134]
when i kill the deCONZ process the Error stopps and the OpenHAB Hue emulation is running
Anyone have a idea how can i fix this ?