Skip to content

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

License

Notifications You must be signed in to change notification settings

codingjoe/deelight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deelight - Yeelight Daylight

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

Setup

Raspberry Pi

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

Next install the following packages:

sudo apt-get install python3-pip -y

Deeelight

Install the Python package

sudo pip install deelight

and run the deelight command

deelight "New York, US" -v

Autostart

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
[Unit]
Description=Daylight mode for Xiaomi Mi Yeelight
After=network-online.target

[Service]
Type=idle
ExecStart=/usr/bin/python3 /usr/local/bin/deelight Valletta -v
Restart=always

[Install]
WantedBy=multi-user.target
sudo systemctl enable deelight.service
sudo service deelight start