Tuya Tray is a taskbar application to control SmartLife/Tuya smart devices.
First, configure a .config.json using the tuya.sh script, where
EMAILis the email address used to login to Tuya or SmartLifePASSWORDis the password used to login to Tuya or SmartLifeCOUNTRY_CODEis the phone code for the region where you are (44for the UK1for USA)APPLICATIONis one oftuyaorsmart_life, depending on which service you use
./tuya.sh -c EMAIL PASSWORD COUNTRY_CODE APPLICATIONor 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.shThis will do the following:
- install a local virtual environment
./venv - Install dependencies
- Login using your
.config.jsondata - 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
