mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 16:38:16 +01:00
0630cdded3
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
10 lines
286 B
YAML
10 lines
286 B
YAML
wiegand:
|
|
- id: test_wiegand
|
|
d0: 5
|
|
d1: 4
|
|
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);
|