I just got a few Kauf Smart plugs online on my WLAN subnet and they are not getting discovered by HA on a different VLAN / IoT network. I do not have ESP32 or ESP8266 connected to my HA VM either.
I’m considering adding additional NIC’s to my HA VM to connect to my WLAN subnet via VLAN trunk…
But before I do so, what is best practice and/or my options for getting these Kauf plugs added to HA.
Segmented networks are not officially supported within HA.
HA is designed and expects a flat subnet to work as intended.
This is because every segmented network is different for IP’s and number of segments and firewalls and sharing rules and about 650495849085 other things.
This does not mean you can’t use them or that they can’t be made to work, it means that to get them working you are the support structure on your own subnet(s).
Please keep this in mind when you are trying to do this kind of thing.
As Sir_Goodenough say, a flat network is what HA is expecting.
Very few discovery protocols support routing, so if you want it to work, then you need to study all the different discovery protocols and set up broadcast reflectors/helpers on your router, which of course means your router needs to support it.
VLAN will also cause issues with IPv6, which Matter depends on.
If you want to use VLAN, then put ALL IoT devices in one VLAN with the HA server, because then the network is flat for those devices.
Your companion and web clients can be in a different VLAN with just the routing ports opened up in the firewall, because those are just basic protocols like HTTP or HTTPS on port 8123.
I migrated from a HA Docker to HA OS on a bare-metal Mini PC form factor and I’m not Looking Back.
I put everything on a dedicated IoT VLAN and it’s working great so far!