Unable to connect/pair app with diyhue bridge add-on HA

I have a similar issue. I found an issue in the code, where DiyHue will configure a gateway that is not necessarily the correct one. I had an issue that seems very similar.

This is the first time I’ve looked in this codebase, so I’m not familiar with much going on, and it’s entirely possible that this is irrelevant.

For others who have experienced the issue, can you post your network configuration? Please provide:

  1. Network CIDR or range (linux: ip addr show <your_device> | grep 'inet ' — run from a host with direct network interface access)
  2. Gateway IP (linux: ip route | grep default will give it — run from a host with direct network interface access)
  3. The netmask and gateway from diyhue config (grep -E '(gateway|netmask):' /config/diyhue/config.yaml when using the HA SSH addon with defaults)

e.g. for me (after tinkering a bit):

  1. ip addr show eno1 | grep 'inet 'inet 192.168.134.2/22 metric 100 brd 192.168.135.255 scope global dynamic eno1192.168.134.2/22 = 192.168.132.0/22, netmask = 255.255.252.0
  2. ip route | grep defaultdefault via 192.168.132.5 dev eno1 proto dhcp src 192.168.134.2 metric 100 = 192.168.132.5
  3. grep -E '(gateway|netmask):' /config/diyhue/config.yaml =>
netmask: 255.255.255.0
gateway: 192.168.135.1

If others in this thread also have divergent network configs, then that is the most likely proximate cause.