-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't discover deCONZ (through appspot, openhab, home assistant) #922
Comments
Just testet it, the service should work (in my case the -6). Is your docker container allowed to connect to internet? The discovery works by matching the external IP addresses.
Looks like the IP address uses inside the container? Not sure but it might be the case that the Docker container doesn't know the outside IP address of its bridged network. |
Just a quick chime-in that if have experienced the same thing this week (Discovery only returning "[]", Homeassistant not beeing able to find the hub). I was also using the docker image mentioned. As a quick fix, you can manually tell homeassistant where to look using "deconz: { host: <IP }" in the configuration.yaml. I have since switched to using the "official" raspbian image directly on a spare Pi3, so I can't be of further help in resolving this. |
I just checked again, the docker containers do have access to the internet.
That's true, it's the IP of Meanwhile it worked with the desktop app, but
How long is the update time? I shutdown all deconz instances some time ago and it still gives a valid response. @ict I will try that, I couldn't find that configuration in the home assistant docs| |
I double checked: both discovery through UPnP as well as discovery through the dresden-light appspot work for me (running deCONZ on a Raspberry Pi). I did receive one issue on homebridge-hue (ebaauw/homebridge-hue#393) that deCONZ is no longer disovered. I'm not sure yet what's happening there yet. Note that for UPnP discovery to work, the client and the server running deCONZ need to be on the same IP subnet, as UPnP uses local link multicast. When running deCONZ in a container or virtual machine, make sure it's configured with a bridged network. The host should not do any routing to the container or vm; the IP address of the interface in the container or vm should be in the same subnet as the IP address of the host. The same holds for running homebridge in a container or vm: Bonjour is using local link multicast as well. Note that for appspot discovery to work, the client and server running deCONZ need to use the same public IP address, and both need to use the same IP family (IPv6 or IPv4) connecting to the appspot portal. This is more strict than Hue bridge discovery; the meethue portal is only reachable over IPv4. To check what's discoverable, you can run |
First of all, thank you all for the quick replies. @ict, the manual configuration worked. My setup is actually relatively small. It's one Windows device in one network with one (static) public IP address. On that device, I've got a bridged Virtualbox running with docker. All containers in question run with --net=host mode. Windows device: 192.168.178.47
Where do I find that tool? It doesnt seem to be in the desktop package and neither in marthoc's container. |
https://github.com/ebaauw/homebridge-hue-utils I thought they now bundle homebridge-hue with deCONZ, but maybe they only install it just-in-time. |
Turned out the major problem was the port. I had deconz running on port 7080, but after I changed it to port 80, everything works like a charm. Almost at least. OpenHAB discovered the server as well as Home Assistant and However, all find container's NAT IP instead of the bridged network IP. Can I pass deconz a network adapter to use? |
I don’t think you can. Why do you need two interfaces on the container? Can’t you just only use the bridged network? |
The NAT is a vital part of the vagrant setup. It's somehow required for all the provisioning (and sshing). There's a documentation though which explains how to change the default gateway. I'll try that. More of a drawback is the dependency on port 80. Is this correct or should it work on any port? |
Sounds like you setup the container software to create its own network segment, where the host doubles as NAT router between the host network and the container network. In this case the container’s default gateway is the host adddress on the container network. If your Internet router does NAT as well, you might run into double NAT issues.
You can specify which port to use when starting deCONZ using |
I totally agree, that for the use case running deCONZ in the local network the NAT is not necessary. I'm still researching in this, but I think the VM's NAT is used only for vagrant's provisioning tools and solely required locally. Vagrant's requirement to have the NAT as eth0 is pretty irritating as the Linux guest will take eth0's outgoing IP as default and thus all configuration files are wrong. So I either change the provisioning tools (which I'd rather not do) or I have to find some way around.
Is there a list of other command line parameters? I only found --http-port and --ws-port.
You're right, that's something for another discussion :) |
Hm, doesn't seem so L275 |
I’m afraid that’s still on @manup ‘s todo list. Afaik, there’s no way to specify the IP address or network interface. |
This worked previously for me, has gotten broken down the line. Can't say if it is the container or deconz itself. Running https://dresden-light.appspot.com/discover from Safari on the same machine yields [] |
I had the same a couple of days ago, then it started working again without any changes on my side. It’s working here at the moment. |
Note that appspot only works if deCONZ and the client both use IPv6 or both use IPv4. What happens if you get the url using |
It get [] on all machines I run it on |
I still get the
|
It's activated, but as it's connected now, I'd as well turn it off ^^ |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi,
I'm having a bit of a problem getting the discovery running. I have marthoc/deconz:amd64-2.05.44 running in a boot2docker machine on a Windows 10 host that I created with a bridged network using vagrant. (Although I have very similar behaviour with the desktop application, except there's the correct IP in the description.xml).
I got everything runnig and paired some sensors and lights. Then I tried connecting OpenHAB using their Hue Binding. It was a little odd: it was immediately found, but it couldn't connect though I unlocked the gateway. I then retrieved a username manually by using the API and put it in the OpenHAB config, but it still wouldn't connect. Also used different IPs and hostnames, but nothing was successful.
As I found many hints on Home Assistant (and that it would work better there) during my research, I used that image, but neither did it discover the deCONZ.
I then found the appspot discover URL, but it would only return
[]
:Using the UPnP Tester I can find other services running on that boot2docker machine, but not the deDONZ:
One more thing that I observed: in the
http://192.168.178.37/description.xml
I found a wrong IP address (as you see below). I tried setting this manually, but it didn't change anything.The text was updated successfully, but these errors were encountered: