11-22-2025, 12:58 PM
(11-22-2025, 12:48 PM)admin Wrote: 1-wire1:GPIO47
1-wire2:GPIO48
1-wire3:GPIO38
showed in your RED section. just GPIO-1, GPIO-2, GPIO-3.
GPIO-1=GPIO47
GPIO-2=GPIO48
GPIO-3=GPIO38
This makes sense now...
ESPhome has code:
Code:
- platform: gpio
name: "A16v3 IO47"
pin:
number: 47
inverted: true
- platform: gpio
name: "A16v3 IO48"
pin:
number: 48
inverted: true
- platform: gpio
name: "A16v3 IO38"
pin:
number: 38
inverted: true
- platform: gpio
name: "A16v3 IO39"
pin:
number: 39
inverted: true
- platform: gpio
name: "A16v3 IO40"
pin:
number: 40
inverted: true
- platform: gpio
name: "A16v3 IO41"
pin:
number: 41
inverted: trueSo, for Weigand we use
Code:
wiegand:
- id: mykeypad
d0: GPIO47
d1: GPIO48
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);d0: GPIO47
d1: GPIO48
Can you advise this is the best solution for Weigand communication?
Thanks,
Paul

