The Mi Home Security Camera (Xiaomi), only supports SMB1,add this to your smb4.conf to make it work:

[global]
    client max protocol = NT1
    server min protocol = NT1
    ntlm auth = ntlmv1-permitted