Tuya Tray is a taskbar application to control SmartLife/Tuya smart devices.
First, configure a .config.json
using the tuya.sh
script, where
EMAIL
is the email address used to login to Tuya or SmartLifePASSWORD
is the password used to login to Tuya or SmartLifeCOUNTRY_CODE
is the phone code for the region where you are (44
for the UK1
for USA)APPLICATION
is one oftuya
orsmart_life
, depending on which service you use
./tuya.sh -c EMAIL PASSWORD COUNTRY_CODE APPLICATION
or you can manually configure a .config.json
, based on the provided config.example.json
Now you can install the application (on the first run) and run it with:
./tuya.sh
This will do the following:
- install a local virtual environment
./venv
- Install dependencies
- Login using your
.config.json
data - Launch the menu bar application
- Save your session data for quick logins
or, you can manually install and run the application with
python -m pip install -r requirements.txt && python -m tuya
- Light brightness
- Scene grouping
- Better, less manual login system
- Encode password in temporary files, or use Keychain