Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding RC522 RFID reader to supported drivers - first working attempt attached #9916

Closed
pookycade opened this issue Nov 19, 2020 · 3 comments
Assignees
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended

Comments

@pookycade
Copy link

Have you looked for this feature in other issues and in the docs? Yes

Is your feature request related to a problem? Please describe. No
A clear and concise description of what the problem is.

Describe the solution you'd like
A clear and concise description of what you want to happen.

RC522 readers are far more prevalent than PN532 readers simply due to cost. There is not current support for them in Tasmota

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

I have made an RC522 work at its most rudimentary level by hacking into the PN532 ino. It works, but its obviously not clean and I have to compile my own BIN for this project. Perhaps someone with more time/skills can take this further or pretty it up so it is more acceptable to the main code base

This can be renamed .ino to use and just plug it right in and you have to also add the MFRC522.h library to the build.

Its only function right now is that when you scan an RFID card it will report out in the console the number of this card in the sensor data. It is formatted along the lines of tele/CardSwipe5/SENSOR = {"Time":"2020-11-19T07:20:53","PN532":{"UID":AFF2BA}} It works for my purposes but is rudimentary and an admitted complete hack. Someone else can do better
xsns_40_pn532.txt

(Please, remember to close the issue when the problem has been addressed)

@ascillato2 ascillato2 added the feature request (devs?) Action - awaiting response from developers label Nov 19, 2020
@pookycade
Copy link
Author

pookycade commented Nov 20, 2020

One additional bit of info. I am trying to get an entity recognized in HA for this hacked sensor routine. I try to follow the expected syntax that is documented for the PN532 sensor as shown below from the Console

MQT: tele/Cardswipe6/SENSOR = {"Time":"2020-11-20T08:38:50","PN532":{"UID":"77B0A65F", "DATA":"ILOVETASMOTA"}}

The New Tasmota(Beta) 9.10 Integration inside HA picks up my V53l0x, my PCF8574 output, but will not see this RFID no matter how I seem to format the MQT messages.

Now I realize that my expectation that any of this should work is ZERO. But if its something simple, I'd love to get it working.
Being clueless about this, can anyone perhaps provide insight into what is needed for an auto integration via Tasmota inside HA ? Why does it correctly set up the V53l0x sensor which is integrated in much the same manner

MQT: tele/Cardswipe6/SENSOR = {"Time":"2020-11-20T08:44:50","VL53L0X":{"Distance":9999}}

That above works perfectly.

I even tried paring it down to this

MQT: tele/Cardswipe6/SENSOR = {"Time":"2020-11-20T08:38:50","PN532":{"UID":"77B0A65F"}}

No go.

@arendst arendst self-assigned this Nov 29, 2020
arendst added a commit that referenced this issue Dec 6, 2020
Add support for SPI connected MFRC522 13.56MHz rfid card reader (#9916)
@arendst arendst added the fixed Result - The work on the issue has ended label Dec 6, 2020
@ascillato2 ascillato2 added enhancement Type - Enhancement that will be worked on and removed feature request (devs?) Action - awaiting response from developers labels Dec 6, 2020
@ascillato2
Copy link
Collaborator

Closing this request as it has been added by Theo.

Thanks.


Support Information

See Docs for more information.
See Chat for more user experience.
See Community for forum.
See Code of Conduct

@rapi3
Copy link

rapi3 commented Feb 21, 2021

Hi
At this moment the reader work but antena range it is low.
Do you think Is it possible to add SetOptions to set antenna gain value RFCfgReg 48.
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests

4 participants