chadwpalm / Lumunarr

Connector application for using Plex Webhooks with Philips Hue Bridges.
GNU General Public License v3.0
51 stars 0 forks source link

Can't connect to / No response to Hue Bridge button press #30

Open Robert-Janssen opened 1 month ago

Robert-Janssen commented 1 month ago

During setup my bridge is found. But when I get to the button press screen and press the button on the bridge, nothing happens and the 30 seconds just run out.

I run the docker image on a Truenas Scale NAS.

chadwpalm commented 1 month ago

There are two methods for Hue Bridge discovery:

  1. mDNS: Lumunarr will use mDNS (Multicast DNS) to send out a multicast message over the network to resolve IP addresses based on the hostnames. If the hostname contains "hue" in it, then that IP will be saved to a list of IPs that Lumunarr uses.

  2. Hue Discovery: All Hue bridges periodically poll the Hue Cloud and store the pairing of the bridge's internal (LAN) IP address with your external internet IP address. Those local IP addresses can be retrieved from the Hue Cloud and used in local bridge discovery.

If method 1 fails, Lumunarr will fall back to method 2. I'm saying this because it is possible your NAS cannot reach the bridge, but you still were able to obtain the IP address of the bridge during the search because it used method 2 to pull the IP from the Hue Cloud.

So either your NAS cannot see the bridge, or the Lumunarr Docker container cannot see the bridge. You can test the NAS by simply SSH'ing into it and pinging the bridge to see if it responds. If that works, then it could be an issue with networking through your Docker container and that would depend on how it was ran.

Are you running the container through docker compose? If so, try adding network_mode: "host" to the Lumunarr section of your docker-compose.yaml file and see if that resolves the problem. What that does is run the container in network host mode which uses the host's (your NAS) network configuration and IP address.

Robert-Janssen commented 1 month ago

Thanks for responding.

I've setup lumunarr as a custom app in scale. So kubernetes makes it more complicated. I can't seem to get the container to run in a host mode.

When pinging from truenas itself I indeed can see the bridge, but from the container the ping fails. So I will have some puzzeling to do to get the host network mode to work.

I may run the app on windows in the meantime to at least check it out.