{"id":46014269,"url":"https://github.com/cinderblock/ha-kastle","last_synced_at":"2026-03-01T01:00:53.091Z","repository":{"id":340898234,"uuid":"1168084933","full_name":"cinderblock/ha-kastle","owner":"cinderblock","description":"Kastle Access integration for Home Assistant. Implemented by Claude","archived":false,"fork":false,"pushed_at":"2026-02-27T05:56:52.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-27T09:39:08.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cinderblock.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-27T01:58:23.000Z","updated_at":"2026-02-27T05:56:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cinderblock/ha-kastle","commit_stats":null,"previous_names":["cinderblock/ha-kastle"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cinderblock/ha-kastle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fha-kastle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fha-kastle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fha-kastle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fha-kastle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cinderblock","download_url":"https://codeload.github.com/cinderblock/ha-kastle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fha-kastle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29957128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-03-01T01:00:38.196Z","updated_at":"2026-03-01T01:00:53.035Z","avatar_url":"https://github.com/cinderblock.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kastle Access for Home Assistant\n\nUnofficial Home Assistant integration for [Kastle Systems](https://www.kastle.com/) access control. Unlock doors managed by Kastle directly from Home Assistant.\n\n## Features\n\n- Unlock any Kastle-managed door you have access to\n- Automatic discovery of all authorized readers\n- Button entities integrate with HA automations, scripts, and dashboards\n- Secure: generates its own cryptographic keypair, signs every request\n\n## Installation\n\n### HACS (Recommended)\n\n[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=cinderblock\u0026repository=ha-kastle\u0026category=integration)\n\nOr add manually:\n\n1. Open HACS in Home Assistant\n2. Click the three-dot menu → **Custom repositories**\n3. Add `https://github.com/cinderblock/ha-kastle` with category **Integration**\n4. Search for \"Kastle Access\" and click **Install**\n5. Restart Home Assistant\n\n### Manual\n\n1. Copy the `custom_components/kastle/` folder into your Home Assistant `config/custom_components/` directory\n2. Restart Home Assistant\n\n## Setup\n\n1. Go to **Settings → Devices \u0026 Services → Add Integration**\n2. Search for **Kastle Access**\n3. Enter your Kastle account email, country code, and phone number\n4. Check your email for a 6-digit verification PIN\n5. Enter the PIN to complete setup\n\nAll authorized doors will automatically appear as button entities.\n\n## Usage\n\nEach door appears as a button entity. Press the button to momentarily unlatch the door (same as tapping \"Remote Unlock\" in the Kastle app). The button's last-pressed timestamp shows when you last unlocked the door.\n\n### Rediscover Readers\n\nIf your access permissions change, call the `kastle.rediscover_readers` service to refresh the list of available doors.\n\n### Automations\n\n```yaml\n# Example: unlock the front gate when arriving home\nautomation:\n  - trigger:\n      - platform: zone\n        entity_id: person.cameron\n        zone: zone.home\n        event: enter\n    action:\n      - service: button.press\n        target:\n          entity_id: button.front_entry_gate_14\n```\n\n## How It Works\n\nThis integration communicates directly with Kastle's cloud API (`mykastle.com`). It generates its own EC P-256 keypair and registers as a device, just like the official Kastle Presence mobile app. Each unlock request is signed with ECDSA, using the same protocol the app uses.\n\n**Important**: Setting up this integration will de-register the Kastle Presence app on your phone (only one device can be registered at a time). You can re-register the app by logging in again, but that will invalidate this integration's credentials (triggering a re-auth flow).\n\n## Troubleshooting\n\n- **\"Authentication expired\"**: Your security token has expired. The integration will prompt you to re-authenticate with a new PIN.\n- **No readers found**: Call `kastle.rediscover_readers` or check that your Kastle account has remote unlock permissions.\n- **Unlock fails**: Check the Home Assistant logs (`Logger: custom_components.kastle`) for detailed error messages.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinderblock%2Fha-kastle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcinderblock%2Fha-kastle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinderblock%2Fha-kastle/lists"}