Skip to content

How do I get the local_key ? #111

Answered by ratnick
ratnick asked this question in Q&A
Mar 1, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I did the following to make it work.

Based on: https://github.com/jasonacox/tinytuya

d = tinytuya.OutletDevice('DEVICE_ID_HERE', 'IP_ADDRESS_HERE', 'LOCAL_KEY_HERE')

DEVICE_ID: found throug Smart Life app or through the cloud.
IP_ADDRESS: This is the LOCAL IP address, for example found found via IP Scanner. The Smart Life App gives you the global address - don't use that.
LOCAL_KEY: Same as "key" found down below through the tinytuya wizard (in Python).

But this wizard needs some other input (apiKey and apiSecret), which I found via the project set up in the Tuya cloud (as described in https://github.com/jasonacox/tinytuya):

Cloud -> Development -> select the project you have created.
On …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ratnick
Comment options

Comment options

You must be logged in to vote
2 replies
@jasonacox
Comment options

@jasonacox
Comment options

Answer selected by ratnick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants