Coder Social home page Coder Social logo

esphome-door-lock's People

Contributors

hausnerr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esphome-door-lock's Issues

no valid rfid

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!!

users file

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?

Feature Request: Last tag refresh if possible

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.

GPIO Definition

Hi!
Where do you define the GPIOs?
So I can adapt to a NodeMCU.
Thanks

Error: 'KeyValuePair' is not a member of 'esphome :: api'

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

Failed to open users list file! (rfid_users_list.db)

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

Upload users problem

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.