hausnerr / esphome-door-lock Goto Github PK
View Code? Open in Web Editor NEWIoT door lock based on Wemos D1 mini and RC522 RFID module
License: MIT License
IoT door lock based on Wemos D1 mini and RC522 RFID module
License: MIT License
Hi Jakub, thank you for writing this! i am trying to implement this and having a couple of issues with the users file i believe.
I have saved my users file in www as mentioned, which contains the following (obfuscated ID's for privacy):
24:XX:XX:XX=DorzFob
70:XX:XX:XX=DorzCard
using the service call i can send the users file to the ESP. viewing logs output i can see the following:
[01:42:57][D][rfid:165]: Fetching users list from server...
[01:42:57][D][rfid:046]: Parsing users list...
[01:42:57][D][rfid:088]: Saving users list to file...
I believe this should mean it has saved the users list correctly? there are no errors during the process, like there is if i choose a file name that doesnt exist. is this supposed to display the users?
My tags are not triggering the relay, and in Logs i am getting the following (obfuscated ID's for privacy):
[01:43:03][D][rfid:132]: Tag with id 70:XX:XX:XX found!
[01:43:03][D][rfid:133]: Setting sensor states...
[01:43:03][D][binary_sensor:033]: 'Invalid tag': Sending state ON
[01:43:03][D][text_sensor:015]: 'Last tag ID': Sending state '70:XX:XX:XX'
[01:43:03][D][text_sensor:015]: 'Last tag description': Sending state 'UNKNOWN'
[01:43:08][D][binary_sensor:033]: 'Invalid tag': Sending state OFF
[01:43:12][D][rfid:132]: Tag with id 24:XX:XX:XX found!
[01:43:12][D][rfid:133]: Setting sensor states...
[01:43:12][D][binary_sensor:033]: 'Invalid tag': Sending state ON
[01:43:12][D][text_sensor:015]: 'Last tag ID': Sending state '24:XX:XX:XX'
[01:43:12][D][text_sensor:015]: 'Last tag description': Sending state 'UNKNOWN'
[01:43:17][D][binary_sensor:033]: 'Invalid tag': Sending state OFF
is there a way to view the user ID's and names stored in the unit via homeassistant? i have tried service call esphome.door_lock_print_users_list from homeassistant and it displays a blank notification.
Any ideas?
Thank you!!
Hi mate, thanks for the effort with this.
I've mocked it up (and ordered PCBs, so hope I can get this going!)
I've got a file rfid_users at /config/www/ on Home Assistant. And I call the esphome.rfid_lock_1_sync_users_list_from_server service with data {"url":"https://hassio.local:8123/local/rfid_users"}
I know the file is available there, if I use the same URL in a browser the file is downloaded.
But calling the service results in an error in the console:
[18:46:27][D][rfid:165]: Fetching users list from server...
[18:46:27][E][rfid:174]: Invalid server response. Server unavailable?
Any ideas?
First of all, Really Thanks for the hard word. I just found this and flash it yesterday. it works so great, Thanks!
I did not use esphome-door-lock as a door lock but just a trigger for automation in Home Assistant. however, I found the last tag ID and description will remain unchanged until it read other tag or card.
So wonder is it possible to make the code to resend the id and description ever time when tag to RFID.
Hi!
Where do you define the GPIOs?
So I can adapt to a NodeMCU.
Thanks
Hello,
I am trying to use a nodeMCU + RC522.
When I try to compile and upload in esphome, I get the following error:
src / door_lock_rfid.h: 34: 12: error: 'KeyValuePair' is not a member of 'esphome :: api'
Any ideas?
Thank you
Hello
Thanks for your great esphome-door-look.
Everything is working fine, except that error of opening users list file and I receive the below error.
Where should I put this file.
[0;35m[C][switch.gpio:011]: Setting up GPIO Switch 'Door lock'...�[0m
�[0;36m[D][switch:017]: 'Door lock' Turning OFF.�[0m
�[0;36m[D][switch:037]: 'Door lock': Sending state OFF�[0m
�[0;36m[D][switch:017]: 'Door lock' Turning OFF.�[0m
�[0;36m[D][rfid:062]: Loading users list from file...�[0m
�[1;31m[E][rfid:066]: Failed to open users list file!�[0m
Thanks
Ashraf
Hello,
When I want to update my ESPHome project it fails all the time.
Is there a way to fix this ?
You can find the log in attachment.
Kind regards,
Bart
logs_rfid-reader-terrein-8_upload (1).txt
Hello,
I can not upload more then 36 users.
The service comes with no error and when I look into the list of users there is only the 2 example users in there.
What can be the problem?
How can I fix this?
Kind regards,
Bart Engelen
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.