this is how xiaomi smarthome communicate between multiples devices in local network
github.com/kamontat/miapi
kamontat/miapi