Tuya WiFi Smart Plug

From Leo's Notes
Revision as of 05:34, 5 December 2018 by Leo (talk | contribs) (Created page with "To talk to the device, you need 3 things: # The device IP address # UUID / Device ID # localKey You can get this by sniffing the traffic the Android app makes with a SSL Capt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 5 December 2018, at 05:34.

To talk to the device, you need 3 things:

  1. The device IP address
  2. UUID / Device ID
  3. localKey

You can get this by sniffing the traffic the Android app makes with a SSL Capture app. When adding a new plug, some of the requests should contain something about a 'localKey'. One of the requests should also return all devices as well as their corresponding localKey from their server.

Self Hosted

It looks like the plug currently talks with

  • mq.gw.tuyaus.com via MQTT
  • a1.tuyaus.com via HTTP

You will probably still need to allow it to connect to the cloud once. If you don't let it completely connect, some features like voltage/wattage are disabled from the output (?).

The localKey seems to change every time the device is reconnected to the cloud.

See Also