LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
56 stars 6 forks source link

[computer_hardware][electrical_equipment] Managing Tuya smart outlets #983

Open LukeShortCloud opened 1 year ago

LukeShortCloud commented 1 year ago

Verify that a device is manufactured by tupya (many brands will relabel the devices but still use the same hardware) by seeing if port 6668 is in use.

$ nmap <LOCAL_IP_ADDRESS>
PORT     STATE SERVICE
6668/tcp open  irc

3 pieces of information are required to access the API:

https://github.com/codetheweb/tuyapi

As of 2022, the local key is no longer publicly available for security and privacy concerns. However, there are workarounds to get it.

https://support.tuya.com/en/help/_detail/K9tndtl21hlin https://community.home-assistant.io/t/get-local-key-tuya-since-june-2022/436399

It is also possible to flash custom firmware to unlock more capabilities.

Brands that typically use Tuya:

https://lovetechstuff.com/iot-products/how-to-flash-wifi-socket-without-disassembly/