First off, I have looked at many threads and forums on this and cannot find an answer that fits my case; I apologise if I missed something,
I run HA and have some small H&T (Xiaomi) devices that I wanted to connect more reliably in the corners of the house, so went for some cheap Bluetooth Proxy ESP32 devices to play around with. I got them set up OK with the HA BT Proxy setup page initially (for the plain ESP32 device type), then proceeded to use a custom YAML for a non-supported device, an ESP32-C3.
This all worked fine when I was just using an IoT Network setup as a Guest Network, on (Guest Network) GN2 which uses the same subnet as the Primary LAN.
However, tinkering as you do, when I got a VLAN capable Router cheap 2nd hand (ASUS RT-AXX88U Pro) recently I thought I would set up a VLAN (different subnet) for all my IoT Devices, using Guest Network Pro.
Oddly, while the ESP32 devices showed they were actually connected to the new IoT Wifi Network in the Wireless Log, in ESPHome they were constantly shown as “Offline”; and the ‘Logs’ check did not find any Wifi connection, it stopped at:
WARNING Can't connect to ESPHome API for esp32btproxy @ 192.168.53.108: Timeout while connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.53.108', port=6053))] (TimeoutAPIError)
INFO Trying to connect to esp32btproxy @ 192.168.53.108 in the background
So my question is, what is it about the separate LAN (subnet 53 i.e.192.168.53.1 vs my Primary LAN 192.168.9.1). that might cause this?
I started reading about mDNS but it seemed rather advanced… any ideas that I can investigate and then make adjustments I need to, maybe Router / LAN network related as opposed to ESP32 and YAMLs etc of course) would be really appreciated. Thanks. I know I can put the IoT Network back on the Primary subnet but that sort of defeats the purpose of the VLAN.
I can supply my ESP32 YAML files later if that helps.