You might want to see Stefan’s post Linear HUSBZB-1 and Xiaomi temp sensor - #8 by shauser88 where there is a comment on how to hack the Zigbee binding to deal with Xiaomi. I had the problem of them dropping off and switched to using the gateway (and disabling the gateway’s access in my router). That is working fairly well for now, but I would like to use a non-gateway solution if possible.