you can always try to ask claude.ai to help you with custom quirk. It did a pretty decent job on creating a custom quirk for my Aqara H1: