Xiaomi Smart devices only accept command from the same subnet. This is openwrt configuration I used to fix that.
iot is the smart devices subnet, including xiaomi devices
192.168.10.8 is my Home Assistant IP
192.168.88.232 is xiaomi device IP
uci add firewall nat # =cfg1793c8