Skip to content

Tray application for SmartLife/Tuya

Notifications You must be signed in to change notification settings

xljones/tuya-tray

Repository files navigation

example workflow

Tuya Tray

Tuya Tray is a taskbar application to control SmartLife/Tuya smart devices.

Installation

Configuration

First, configure a .config.json using the tuya.sh script, where

  • EMAIL is the email address used to login to Tuya or SmartLife
  • PASSWORD is the password used to login to Tuya or SmartLife
  • COUNTRY_CODE is the phone code for the region where you are (44 for the UK 1 for USA)
  • APPLICATION is one of tuya or smart_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

Run the app

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

Example

image

Todos

  • Light brightness
  • Scene grouping
  • Better, less manual login system
  • Encode password in temporary files, or use Keychain

About

Tray application for SmartLife/Tuya

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published