Alexa does not find emulated_hue devices

I saw a couple of older similar (but not the same) threads but no solutions. I am trying to control my devices in Home Assistant via Alexa.

I am running Home Assistant inside docker(compose) but after problems I switched it to using host mode. The config for hue is as follows:

# hue emulation
emulated_hue:
  listen_port: 80
  host_ip: 192.168.2.4
  #advertise_ip: 192.168.2.4
  #advertise_port: 80
  expose_by_default: false
  #exposed_domains:
  #  - light
  entities:
    light.bulb_bedroom_level_light_color_on_off:
      name: "Licht Schlafzimmer"
      hidden: false
    light.bulb_hallway_level_on_off:
      name: "Licht Flur"
      hidden: false

I tried with and without the advertise part. http://192.168.2.4/api/pi/lights shows the two devices without a problem.
My network is run by Unifi devices (mdns enabled). Alexa is on my IoT vlan, the server on the main vlan. Firewall rules allow access from IoT to the server on all ports though. I checked with a phone on the iot wifi and was able to open the same link.

Still Alexa does not find anything when looking for new devices. Does someone have an idea how to fix this or at least how to debug? Thank you!

Have you tried putting both on the same vlan to confirm whether or not that is causing the problem?

1 Like

If I recall correctly, you need a gen 1 or 2 Alexa on your network for it to work.

That is a very good idea, I should have tried that already. Turns out if I move the Echo to the other Wifi on the same VLAN everything works. Now I need to figure which firewall rules I need to change

I don’t use a lot of UniFi devices, so I can’t help with diagnosis. But my approach would be to break it down into steps - re-instate the VLAN setup but allow all traffic between them. If that works, then add your rules as required. Change one thing at a time, and if it breaks functionality, you have only one issue to debug and fix.

I disabled all firewall rules and still had the same problem. I assume it is something connected to multicast and VLANs. For now I moved the echo to the same vlan, discovered devices and moved it back. It can still control them just not find new ones.
I will add an update if I figure this out