Excellent post, than you for sharing. Big clap.
I am trying to adapt the implementation in python for having it working with the SpMini2 devices, I took the base code from https://github.com/mjg59/python-broadlink . I wonder how did you manage to decipher the protocol, because even dough I used Wireshark in monitor mode capturing all the packages I was not able to understand what each byte was, until I came up with your post. Did you get help?