Wiegand keypad and tag reader¶
wiegand component allows you to integrate Wiegand-standard key
input and card or tag reader panels in Home Assistant.
Some keypads are preconfigured by the factory to act as Wiegand input devices. In order to work with this component, they may need to be reconfigured to act as Wiegand 26 output or Wiegand 34 output devices.
# Example configuration entry wiegand: - id: mykeypad d0: GPIO5 d1: GPIO4 on_key: - lambda: ESP_LOGI("KEY", "received key %d", x); on_tag: - lambda: ESP_LOGI("TAG", "received tag %s", x.c_str()); on_raw: - lambda: ESP_LOGI("RAW", "received raw %d bits, value %llx", bits, value);
on_key (Optional, Automation): An automation to perform when a key has been pressed on the pad. The key is in a variable called
on_tag (Optional, Automation): An automation to perform when a Wiegand-compatible card or a tag has been read by the device. The tag code is in a variable called
on_raw (Optional, Automation): An automation to perform for any data sent by the device. The value is in a variable called
value, the number of bits is in a variable called
bits. Note that this will include parity bits as well and no parity checking is done.
Automatic handling of multiple keys (e.g. PIN code entry) is possible with the the Key Collector component.
Keys 10 and 11 are
#. They might be labelled as
but check the logs to see which key code you get and use the corresponding character.