{"id":13338580,"url":"https://github.com/redphx/tuya-local-key-extractor","last_synced_at":"2025-08-04T16:34:34.804Z","repository":{"id":150236769,"uuid":"495012889","full_name":"redphx/tuya-local-key-extractor","owner":"redphx","description":"Get Tuya device's local key easily","archived":false,"fork":false,"pushed_at":"2024-09-04T23:53:01.000Z","size":11,"stargazers_count":39,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-18T12:02:16.918Z","etag":null,"topics":["tuya"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redphx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-05-22T09:22:19.000Z","updated_at":"2025-03-16T01:24:01.000Z","dependencies_parsed_at":"2024-10-28T13:22:25.272Z","dependency_job_id":"930c33ec-9662-4228-8c1b-ee7bbb72fe30","html_url":"https://github.com/redphx/tuya-local-key-extractor","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"abe134cc1e87f910775d0c1a2330e4750b7b1e0b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redphx%2Ftuya-local-key-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redphx%2Ftuya-local-key-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redphx%2Ftuya-local-key-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redphx%2Ftuya-local-key-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redphx","download_url":"https://codeload.github.com/redphx/tuya-local-key-extractor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244972034,"owners_count":20540913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["tuya"],"created_at":"2024-07-29T19:17:02.357Z","updated_at":"2025-03-22T14:31:33.058Z","avatar_url":"https://github.com/redphx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tuya-local-key-extractor\nGet Tuya device's local key easily using [Official Tuya IoT Python SDK](https://github.com/tuya/tuya-iot-python-sdk).\n\n## Installation\n1. Install `tuya/tuya-iot-python-sdk`:\n  ```\n  pip3 install tuya-iot-py-sdk\n  ```\n\n2. Follow [this guide](https://www.home-assistant.io/integrations/tuya/) to create a Tuya IoT project. You'll find `ACCESS_ID` and `ACCESS_KEY` after creating it.\n\n3. Open `config.py` in text editor and fill in info.\n\n4. Run `python3 extract.py` to get local keys.\n\nSample output:\n```json\n[\n  {\n    \"device_id\": \"ce058fxe********\",\n    \"device_name\": \"Fingerbot Plus\",\n    \"product_id\": \"blliqpsj\",\n    \"product_name\": \"Fingerbot Plus\",\n    \"category\": \"szjqr\",\n    \"uuid\": \"tuyaea0e********\",\n    \"local_key\": \"24e3735b********\",\n    \"mac_address\": \"DC:12:23:**:**:**\"\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredphx%2Ftuya-local-key-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredphx%2Ftuya-local-key-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredphx%2Ftuya-local-key-extractor/lists"}