Autolitt is an application utilising the Tuya API to automatically change SmartLife/Tuya lights as per content on screen.
Tested on following platforms with Wipro WiFi bulb. Amazon link
- Ubuntu 20.04 LTS
- Windows 10
Autolitt requires Python 3 to run.
Install the requirements and run the script.
$ pip3 install -r requirements.txt
$ python3 autolitt.py
Android App link for Smartlife: https://play.google.com/store/apps/details?id=com.tuya.smartlife Register from app and link smart bulb.
You will also need to alter the config.json file with the following:
- Your Tuya/SmartLife login and password so it looks like this {"username":"example@domain.com","password":"YOURPASS"...}
- Your country code ("91" for India users, 44" for UK users, "1" for US/Canadian users, etc)
- The application you're using ('tuya' for tuya users and 'smart_life' for smart life users)
{"username":"example@domain.com","password":"YOURPASS","country_code":"91","application":"smart_life"}
Inspired from:
To find the dominant colour I have used color-thief-py
- Dynamic Screen Resolution and offset setting
- Properly adjusting dark and white dominant color