Bonjour @iPapy ,
je déterre ce sujet car je suis dans le même cas que toi, je suis dans l’écosystème Apple (iPhone, iPad, iMac)… pas de PC ou android…
Aurais-tu trouvé une solution pour la récupération du jeton LocalKey ?
merci d’avance.
iPapy
Janvier 29, 2021, 10:18
22
Bonjour,
As tu regardé de ce coté là:
**YMMV**: Tuya likes to change their website frequently and the below instructions may be slightly out of date. If something looks wrong, please open a new issue.
**Note**: both methods below require that your device works with the official Tuya Smart app. If your device only works with one specific app, it almost certainly won't work with TuyAPI.
All methods below require you to install the CLI tool before proceeding.
Install it by running `npm i @tuyapi/cli -g`. If it returns an error, you may need to prefix the command with `sudo`. (Tip: using `sudo` to install global packages is not considered best practice. See [this NPM article](https://docs.npmjs.com/getting-started/fixing-npm-permissions) for some help.)
## Listing Tuya devices from the **Tuya Smart** or **Smart Life** apps
This method is fast and easy. If you're having trouble manually linking your device with the below method, we recommend you try this. All devices that you want to use **must** be registered in either the Tuya Smart app or the Smart Life app.
1. Follow steps 1 through 3 from the "Linking a Tuya device with Smart Link" method below.
2. Go to Cloud -> Development and click the project you created earlier. Then click the "Devices" tab. Click the "Link Tuya App account" tab, and select the right data center in the upper right dropdown (eg Western America).
3. Click "Add App Account" and scan the QR code from your smart phone/tablet app by going to the 'Me' tab in the app, and tapping a QR code / Scan button in the upper right. Your account will now be linked.
4. On the command line, run `tuya-cli wizard`. It will prompt you for required information, and will then list out all your device names, IDs, and keys for use with TuyAPI. Copy and save this information to a safe place for later reference.
## Linking a Tuya device with Smart Link
This method requires you to create a developer account on [iot.tuya.com](https://iot.tuya.com). It doesn't matter if the device(s) are currently registered in the Tuya Smart app or Smart Life app or not.
This file has been truncated. show original
Bonjour,
j’utilise cette méthode depuis quelques semaines afin de récupérer les token de mes appareils tuya. Elle fonctionne très bien, mais demande un peu de ligne de code sous linux pour installer node/npm, nécessaire pour ensuite installer tuyapi.
Le compte developpeur de tuya doit également être configurer pour accepter les requetes de tuyapi.
au final j’obtiens ce type d’info :
aucun souci après pour les rentrer dans le plugin wifilightV2.
L’avantage de cette méthode, c’est quelle est « en accord » avec tuya: compatible avec toutes les versions, et très rapidement reproductible.
Si cela est utile je pourrai détailler davantage la méthode et compléter le tuto en anglais, qui saute quelques étapes.
tco91
Mars 2, 2021, 10:35
25
testé à l’instant, tjs valide … c’est top, merci du lien … méthode de faignasse ^^ on obtient tout, on peut s’arreter au step 5 de la partie 2