I have managed to discover Xiaomi Aquara Gateway in Home Assistant using auto-discovery, but entities are not being updated.
I have multiple VLANs, and I used the trunk to connect RPI with the home assistant and configured sub adapters on RPI.
When I sniff traffic in home assistant container with TCP dump, I can see that gateway is sending multicast updates, but aqaura intergration does not update entities accordingly.
root@home-assistant:/home/pluskal# tcpdump -i eth0.11 'port 9898' -vvv -X
tcpdump: listening on eth0.11, link-type EN10MB (Ethernet), capture size 262144 bytes
21:06:15.785318 IP (tos 0x0, ttl 255, id 3909, offset 0, flags [none], proto UDP (17), length 138)
lumi-gateway-v3_miio259435924.4321 > 224.0.0.50.9898: [udp sum ok] UDP, length 110
0x0000: 4500 008a 0f45 0000 ff11 5817 0a0b 69c9 E....E....X...i.
0x0010: e000 0032 10e1 26aa 0076 5373 7b22 636d ...2..&..vSs{"cm
0x0020: 6422 3a22 7265 706f 7274 222c 226d 6f64 d":"report","mod
0x0030: 656c 223a 2273 656e 736f 725f 6d6f 7469 el":"sensor_moti
0x0040: 6f6e 2e61 7132 222c 2273 6964 223a 2231 on.aq2","sid":"1
0x0050: 3538 6430 3030 3538 3237 3638 3322 2c22 58d0005827683","
0x0060: 7368 6f72 745f 6964 223a 3138 3438 2c22 short_id":1848,"
0x0070: 6461 7461 223a 227b 5c22 6c75 785c 223a data":"{\"lux\":
0x0080: 5c22 3131 335c 227d 227d \"113\"}"}
21:06:15.787792 IP (tos 0x0, ttl 255, id 3911, offset 0, flags [none], proto UDP (17), length 144)
lumi-gateway-v3_miio259435924.4321 > 224.0.0.50.9898: [udp sum ok] UDP, length 116
0x0000: 4500 0090 0f47 0000 ff11 580f 0a0b 69c9 E....G....X...i.
0x0010: e000 0032 10e1 26aa 007c d09a 7b22 636d ...2..&..|..{"cm
0x0020: 6422 3a22 7265 706f 7274 222c 226d 6f64 d":"report","mod
0x0030: 656c 223a 2273 656e 736f 725f 6d6f 7469 el":"sensor_moti
0x0040: 6f6e 2e61 7132 222c 2273 6964 223a 2231 on.aq2","sid":"1
0x0050: 3538 6430 3030 3538 3237 3638 3322 2c22 58d0005827683","
0x0060: 7368 6f72 745f 6964 223a 3138 3438 2c22 short_id":1848,"
0x0070: 6461 7461 223a 227b 5c22 7374 6174 7573 data":"{\"status
0x0080: 5c22 3a5c 226d 6f74 696f 6e5c 227d 227d \":\"motion\"}"}
21:06:20.449830 IP (tos 0x0, ttl 255, id 3918, offset 0, flags [none], proto UDP (17), length 164)
lumi-gateway-v3_miio259435924.4321 > 224.0.0.50.9898: [udp sum ok] UDP, length 136
0x0000: 4500 00a4 0f4e 0000 ff11 57f4 0a0b 69c9 E....N....W...i.
0x0010: e000 0032 10e1 26aa 0090 ec24 7b22 636d ...2..&....${"cm
0x0020: 6422 3a22 6865 6172 7462 6561 7422 2c22 d":"heartbeat","
0x0030: 6d6f 6465 6c22 3a22 6761 7465 7761 7922 model":"gateway"
0x0040: 2c22 7369 6422 3a22 3034 6366 3863 6636 ,"sid":"04cf8cf6
0x0050: 6164 3335 222c 2273 686f 7274 5f69 6422 ad35","short_id"
0x0060: 3a22 3022 2c22 746f 6b65 6e22 3a22 7646 :"0","token":"vF
0x0070: 694b 7239 364c 5479 7756 5747 6366 222c iKr96LTywVWGcf",
0x0080: 2264 6174 6122 3a22 7b5c 2269 705c 223a "data":"{\"ip\":
0x0090: 5c22 3130 2e31 312e 3130 352e 3230 315c \"10.11.105.201\
0x00a0: 227d 227d "}"}
It is simillar to https://github.com/home-assistant/core/issues/38286 but I have triple check the network configuration that seems fine.
EDIT:
I have managed to make it to work. The integration asks for a interface
and defaults to any
. No interface name worked for me, but when I passed an IP address assigned to virtual interface belonging to the IoT VLAN, it magically started to work.