PyXiaomiGateway Problem: {"error":"Invalid key"}

Usually this issue is brought by complexity of your network. Does your network support multicast and doesn’t suffer on packet loss?