Closed towerclimber87 closed 3 years ago
Would it be possible to provide an example?
On Mon, Jul 19, 2021 at 10:22 AM Av @.***> wrote:
Closed #2 https://github.com/avwuff/esphome-wiegand/issues/2.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/avwuff/esphome-wiegand/issues/2#event-5039169443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRVXKWLDMBFWKGDX6MA4UDTYQ7MPANCNFSM5ARXNYLQ .
Sorry, ESPHome isn't really something i'm an expert in -- I would ask over there!
Cheers, -av
avwuff, I am hoping that you can help me out here as I have hit a wall. I am unable to get the keypad to group kep press together. I need to be able to press four keys and then enter to have it push out a code. currently it reports every key press as a single key press. It appears that you might have been trying to do this with we have a key code?
void update() override {
// See if we have a valid code
noInterrupts();
bool rc = DoWiegandConversion();
interrupts();
if(rc) {
lastCode = millis();
} else {
if(keyCodes.length() > 0) {
// We have a keyCode, see if the interdigit timer
expired if(millis() - lastCode > 2000) { // The interdigit timer expired, send the code and reset for the next string json_message(keyCodes); keyCodes = ""; } } } }
On Mon, Jul 19, 2021 at 5:59 PM Av @.***> wrote:
Sorry, ESPHome isn't really something i'm an expert in -- I would ask over there!
Cheers, -av
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/avwuff/esphome-wiegand/issues/2#issuecomment-882914699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRVXKWQ2DISP2MT4FCZLXTTYSU47ANCNFSM5ARXNYLQ .
Actually, I didn't write my code to support keypads at all -- I'm kinda surprised you are even getting anything.
This was written for RFID keycards to be scanned!
I assume you are not interested at all in getting the keypad to work?
On Fri, Jul 23, 2021 at 11:21 AM Av @.***> wrote:
Actually, I didn't write my code to support keypads at all -- I'm kinda surprised you are even getting anything. This was written for RFID keycards to be scanned!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/avwuff/esphome-wiegand/issues/2#issuecomment-885752163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRVXKSLQAEQ56AIWZX6C7LTZGJKJANCNFSM5ARXNYLQ .
I don't have one to test with and don't need it in my use case... keep in mind, all I did here was take someone else's Wiegand reader module code and marry it so it would work with ESPHome.
Yup, you can just add code to the on_value to run a lambda to compare the card number and trigger the door.