https://github.com/redphx/tuya-local-key-extractor
Get Tuya device's local key easily
https://github.com/redphx/tuya-local-key-extractor
tuya
Last synced: 10 months ago
JSON representation
Get Tuya device's local key easily
- Host: GitHub
- URL: https://github.com/redphx/tuya-local-key-extractor
- Owner: redphx
- Created: 2022-05-22T09:22:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T23:53:01.000Z (almost 2 years ago)
- Last Synced: 2025-03-18T12:02:16.918Z (about 1 year ago)
- Topics: tuya
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 39
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tuya-local-key-extractor
Get Tuya device's local key easily using [Official Tuya IoT Python SDK](https://github.com/tuya/tuya-iot-python-sdk).
## Installation
1. Install `tuya/tuya-iot-python-sdk`:
```
pip3 install tuya-iot-py-sdk
```
2. 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.
3. Open `config.py` in text editor and fill in info.
4. Run `python3 extract.py` to get local keys.
Sample output:
```json
[
{
"device_id": "ce058fxe********",
"device_name": "Fingerbot Plus",
"product_id": "blliqpsj",
"product_name": "Fingerbot Plus",
"category": "szjqr",
"uuid": "tuyaea0e********",
"local_key": "24e3735b********",
"mac_address": "DC:12:23:**:**:**"
}
]
```