Closed kxtcd950 closed 7 years ago
Addendum: After adding the lines: light: platform: hue host: 90.155.51.248
when next starting hass, I got the log entries:
16-10-12 19:29:59 INFO (Thread-1) [homeassistant.util.package] Attempting install of phue==0.8
16-10-12 19:30:15 INFO (Thread-1) [phue] Attempting to connect to the bridge...
16-10-12 19:30:15 INFO (Thread-1) [phue] Using ip: 90.155.51.248
I suspect that something didn't upgrade to the latest hue package version until I forcibly added the platform in the config. Would the old hue platform module not work with the newer version of hass which I just upgraded to so that I was running the latest homeassistant version to report the bug?
Worthy of note is that this hue problem started this afternoon, before I upgraded to the latest version of hass to report this bug, though.
Isn't that a public IP address? Usually HUE, etc. should be connecting through your local LAN. Do you have a non-standard setup?
Yes, that's a public IP address; as is the IP address which the server is assigned. And both IP addresses are in the same subnet (it's a /27, for a total of 32 IP addresses).
Nonstandard? By home user "standards", yes. But by network standards, no there's nothing non-standard about it. As I've already said earlier in the thread, iConnectHue, and the official Hue app (v1 and v2) connect to the hub ok, because I've already gone through the pain of adding a source-nat rule to my router for Hue-related traffic. This question is about local service discovery, though, so I'm assuming that the connection to the Philips servers is largely irrelevant here; this is at the point the hass instance attempts to discover that on the local network (i.e. the public /27) there is another host which is a Philips Hue Hub (there most definately is) - which doesn't seem to need access to the internet at large.
But by network standards, no there's nothing non-standard about it.
Are you using externally routable addresses on your local network?
Yes, a /27. Have done for years; I have the block routed at me by my ISP.
Yes, I noticed. Your diskstation is exposed to the internet. Does your router have a routing table that tells it these addresses are internal?
Nope. All the hosts have the same subnet, so they all drop local traffic on the local network. It's exactly the same as a more conventional setup in that case.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍
Home Assistant release (
hass --version
): 0.30.2Python release (
python3 --version
): 3.5.2Component/platform: hue
Description of problem: Discovery isn't discovering any hue lights
Expected: Hue to be discovered, as it always has been
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable): Not a crash.
Additional info: hass emits the following (relevant) lines in the log file as soon as discovery starts:
Note that 90.155.51.248 is my Philips hue hub; the IP address that "discovers" as a homekit and a "mystrom" (whatever that is). No lights are detected. Philips hue app and iConnectHue both connect to the hub ok, and can control lights.
phue.conf exists in the ~/.homeassistant directory with the following contents: {"90.155.51.248": {"username": ""}}
and it's readable by my user, as are all config files.
Firewall on the computer running hass is turned off.
This setup has previously been working for well over a couple of months; it only stopped today - this afternoon.