Hello,
I have the following problem. I have a nice stainless steel PS2/USB keypad connected to an Arduino that generates a 26-bit Wiegand code (I haven’t found a way to connect a PS2/USB keypad directly to esphome and use it with the key collector). However, the key collector component only works with the 4-bit Wiegand format. I don’t know how to change it in the Arduino program, but I found it on GitHub. Is there a way to extract the 4 bits with the key in esphome? I think it’s bits 2-5. Thanks for the answer.