Page 1 of 1

RFID card access controls

Posted: Friday 06 April 2018 6:52
by mountainmannm
I have set up an access controls system in my house using Domoticz and an ESP8226 board running ESP Easy as an interface to several Wiegrand RFID card readers in the house. It's pretty slick! I use Blockey logic to control it. It's fairly cumbersome, because I have to have a logic statement for each card on each reader. I haven't figured out a good way to do a log either. It would be neat if Domoticz had a front end for this so I could assign a card to a person, and assign cardholders access levels that have access on selected readers, during scheduled times. Also It would need to have a way of choosing a binary output for each card reader. Logs of who swiped their card where and when, and weather or not access was granted too. I've managed to do all of this except the logs with Blockey logic, so I bet it's not too far fetched to make a front end page just for this. The problem is that programming eludes me, so this isn't a job for me!

Re: RFID card access controls

Posted: Friday 06 April 2018 7:16
by Jan Jansen
I am also looking for a good solution for this. Unfortunately, I do not have the skills to achieve my goal. Previously I found this post viewtopic.php?f=38&t=8582&p=141892&hilit=rfid#p169378 The plan described by D'rMorris fits but is still a bridge too far for me. Perhaps your question leads to a solution that I can use. I am very interested in the solution

Re: RFID card access controls

Posted: Sunday 15 April 2018 8:43
by mountainmannm
It wasn't too difficult. You need to get an ESP 8226 board. Get one that's recomended on the ESP Easy page. Hook up an RFID reader to the pins you assigned on the ESP 8226 board with a resistor voltage devider, and make a dummy sensor in domoticz. You then have to put the IDX into the ESP board via the web interface. Then Scan your RFID card. Go to the ESP web interface, and get the number. Domoticz won't display it. Then write a blockey statement that says"If RFID reader = 123456789 then open door." then you may want another statement to lock the door that reads "If door is unlocked wait 4 seconds then lock door." Let me know how it goes.

Re: RFID card access controls

Posted: Thursday 26 April 2018 20:17
by Jan Jansen
mountainmannm wrote: Sunday 15 April 2018 8:43 It wasn't too difficult. Let me know how it goes.
I prefer a wired solution (RFID-RC522> Nano> ethernet shield ENC28J60> Domoticz) instead an ESPboard. My problem is to send the TAG ID via wire to a Domoticz sensor. It is the first time that I want to connect a sensor via Ethernet to Domoticz. That is a challenge in itself.

I can connect the hardware and I have the necessary libraries (UIPEthernet.h, SPI.h and MFRC522.h). However, I do not get beyond the first beginning of a sketch with which I can send the TAG ID to Domoticz.

I spent a lot of time searching for a solution on the web, unfortunately no success. Here and there you can find a sketch. People who want to use such a sketch then run into an SPI problem.

I hope someone has a solution.

thank you in advance!

Jan