Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codingjoe/deelight
Night shift script for Xiaomi Mi Yeelight lights and light bulbs.
https://github.com/codingjoe/deelight
asyncio home-automation iot python raspberry-pi yeelight
Last synced: 22 days ago
JSON representation
Night shift script for Xiaomi Mi Yeelight lights and light bulbs.
- Host: GitHub
- URL: https://github.com/codingjoe/deelight
- Owner: codingjoe
- License: apache-2.0
- Created: 2017-12-31T13:53:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-25T11:59:44.000Z (almost 4 years ago)
- Last Synced: 2024-10-05T04:55:35.204Z (about 1 month ago)
- Topics: asyncio, home-automation, iot, python, raspberry-pi, yeelight
- Language: Python
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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.
.. _Rasbian: https://www.raspberrypi.org/downloads/raspbian/
Next install the following packages:
.. code-block:: shell
sudo apt-get install python3-pip -y
Deeelight
~~~~~~~~~Install the Python package
.. code-block:: shell
sudo pip install deelight
and run the deelight command
.. code-block:: shell
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... code-block:: shell
sudo nano /etc/systemd/system/deelight.service
.. code-block:: ini
[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.. code-block:: shell
sudo systemctl enable deelight.service
sudo service deelight start