Skip to main content

Daylight mode for Xiaomi Mi Yeelight bulbs and lights.

Project description

Night shift script for Xiaomi Mi Yeelight lights and light bulbs.


Raspberry Pi

Download setup the latest version of Rasbian on your Raspberry Pi.

Next install the following packages:

sudo apt-get install python3 -y
sudo python3


Install the Python package

sudo pip install deelight

and run the deelight command

deelight "New York, US" -v


If you are running deelight on Raspbian or any other Debian system you can add a simple upstart script. It will be executed once your network is up.

sudo nano /etc/systemd/system/deelight.service
Description=Daylight mode for Xiaomi Mi Yeelight

ExecStart=/usr/bin/python3 /usr/local/bin/deelight Valletta -v

sudo systemctl enable deelight.service
sudo service deelight start

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
deelight-1.1.0.tar.gz (9.2 kB) Copy SHA256 hash SHA256 Source None Jan 21, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page