{"id":22944562,"url":"https://github.com/archinamon/ha-esp-locker","last_synced_at":"2026-04-15T18:31:40.820Z","repository":{"id":267169165,"uuid":"900443337","full_name":"Archinamon/ha-esp-locker","owner":"Archinamon","description":"Intelligent locker based on ESP8266 for Home Assistant","archived":false,"fork":false,"pushed_at":"2025-01-09T15:05:52.000Z","size":2743,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T21:41:13.073Z","etag":null,"topics":["125khz","arduino","esp8266","esp8266-arduino","esp8266-firmware","esp8266mqtt","homeassistant","homeassistant-device","rfid-doorlock-application","rfid-reader"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Archinamon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-08T19:33:20.000Z","updated_at":"2025-01-14T14:13:58.000Z","dependencies_parsed_at":"2025-01-09T16:21:54.433Z","dependency_job_id":"78f03b1d-291f-42b6-92f9-602bff523462","html_url":"https://github.com/Archinamon/ha-esp-locker","commit_stats":null,"previous_names":["archinamon/ha-esp-locker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Archinamon/ha-esp-locker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archinamon%2Fha-esp-locker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archinamon%2Fha-esp-locker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archinamon%2Fha-esp-locker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archinamon%2Fha-esp-locker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Archinamon","download_url":"https://codeload.github.com/Archinamon/ha-esp-locker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archinamon%2Fha-esp-locker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31854667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["125khz","arduino","esp8266","esp8266-arduino","esp8266-firmware","esp8266mqtt","homeassistant","homeassistant-device","rfid-doorlock-application","rfid-reader"],"created_at":"2024-12-14T14:19:13.617Z","updated_at":"2026-04-15T18:31:40.795Z","avatar_url":"https://github.com/Archinamon.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP8266-Based Lock with Home Assistant and RFID Support\n\n## Project Description\n\nThis project is a smart lock based on the ESP8266 microcontroller. It integrates with the **Home Assistant** smart home system, allowing control through its interface. Additionally, the lock supports unlocking with RFID cards via a built-in RFID module with an antenna.\n\n## Key Features\n\n- **Integration with Home Assistant** for controlling the lock via a mobile app or web interface.\n- **MQTT Support** for interaction with other smart home systems.\n- **RFID Card Unlocking** for convenient access.\n- **Remote Control** for locking and unlocking over the internet.\n- **Custom Automation Scenarios** for tailored smart home functionality.\n- **Over-the-Air (OTA) Firmware Updates** for seamless firmware updates over Wi-Fi.\n\n## Components\n\n- **ESP8266**: The microcontroller managing the lock's operations.\n- **KY-012**: Simple buzzer for sound feedback. \n- **125Khz RFID Reader with antenna**: For reading RFID card data for authentication.\n- **LY-03**: Solenoid locker for 12v which operates over a relay.\n- **SRD-05VDC-SL-C**: A simple 5v relay (you can use any that operates under 3-12v).\n- **Home Assistant**: The smart home automation system.\n- **MQTT Broker**: For message exchange between devices.\n\n![principal diagram](media-schema.png)\n\n## Installation and Setup\n\n### 1. Assemble the Device\n- Connect the RFID module to the ESP8266 according to the wiring diagram.\n- Ensure the device is powered according to the required specifications.\n\n### 2. Flash the ESP8266\n1. Download the project repository.\n2. Setup your personal data within sketch file:\n   - Your Wi-Fi network credentials (L28-L29).\n   - The MQTT broker address (L33-L36).\n3. Flash the firmware to the ESP8266 using **Arduino IDE** or **PlatformIO**.\n4. Long single beep will indicate that WiFi and MQTT broker has been connected successfully.\n5. The first RFID card or chip will be remembered as a master.\n\n### 3. Integrate with Home Assistant\n- Start Home Assistant.\n- Install Mosquitto with the MQTT broker and start it.\n- Add MQTT integration which connects to your broker.\n- Start the ESP device.\n- The device will send a discovery message and a new device will appear in your HA interface.\n\n### 4. Configure RFID Cards\n- Register cards by touching the antenna with your card or implanted chip.\n- Add unique card IDs for authorization via Home Assistant interface.\n\n### 5. OTA Updates:\n- Use the built-in OTA feature to update firmware without physical access.\n- Access \u003cip-address_of_devices\u003e:88/firmware to upload the firmware updates.\n- Access \u003cip-address_of_devices\u003e:88/restart to reboot the device remotely.\n\n## Usage\nControl the lock via:\n- The Home Assistant interface.\n- Automation scenarios (e.g., unlock when arriving home).\n- By presenting an RFID card or implanted chip to the module.\n\n## Requirements\n- 12v with a DC power supplier to 5v output or a direct USB 5v output.\n- ESP8266 (NodeMCU or equivalent with WiFi).\n- 125Khz RFID Reader module (or you can use your own).\n- Home Assistant with a configured MQTT broker.\n- Wi-Fi Network.\n\n## Notes\n- Ensure the device is protected against unauthorized access.\n- Regularly update the firmware to fix potential vulnerabilities.\n\n## License\nThis project is licensed under the Apache 2.0 License.\n\n## Contact\nIf you have questions or suggestions, feel free to open an Issue in the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchinamon%2Fha-esp-locker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchinamon%2Fha-esp-locker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchinamon%2Fha-esp-locker/lists"}