Skip to main content

Simple Yeelight Room control CLI written in Python.

Project description

https://brands.home-assistant.io/_/yeelight/logo.png https://img.shields.io/pypi/v/yee-cli.svg https://github.com/adamwojt/yee-cli/workflows/ci/badge.svg?branch=master&event=push https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336 https://img.shields.io/badge/code%20style-black-000000.svg

Simple Yeelight Room control CLI written in Python.

Installation

pip install yee-cli

Config

  • Location: ~/.yee_rooms

  • Format: JSON

  • Example:

{
   "office":[
      "192.168.1.1",
      "192.168.1.2"
   ],
   "bedroom":[
      "192.168.1.3",
      "192.168.1.4"
   ]
}
  • Config path can be also passed with -c flag or YEE_ROOM_CONFIG env variable

  • To find bulb IPs use tools like nmap, putty or check on your YeeLight app

Usage

yee [-c --config] [ROOM_NAME*] COMMAND [ARGS]...`

*Use room names from config

Example Usage:

yee bedroom on
yee office dim 10
yee color_list
yee office color indianred
... romance on !

Commands:

color         Set lights to given color.
color_list    Available color list
dim           Dim lights to level (1-100).
off           Turn lights off.
on            Turn lights on.
random_color  Switch to random color.
toggle        Toggle lights.

Troubleshooting

Connection Issues (make sure):
Other:

Credits

After writing almost all I realised that author of python-yeelight also wrote CLI. Check it out - it has different API / config and more features >>> yeecli

Project details


Download files

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

Source Distribution

yee-cli-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yee_cli-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file yee-cli-0.1.1.tar.gz.

File metadata

  • Download URL: yee-cli-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.97-1-lts

File hashes

Hashes for yee-cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8639af4b9f1797075f72eea271fa245ecd02768e1e171e44cf2c5684cebd532e
MD5 6928470b4ed8fadd72d62c9f56d9008b
BLAKE2b-256 7ca9b9fafd6cb71c368e5ea87e1485a938f8287d05c4130fbc351f47501d59b4

See more details on using hashes here.

File details

Details for the file yee_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: yee_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.97-1-lts

File hashes

Hashes for yee_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c789109ec7b18fc3e09b8242c64e63efd9ddbdc0b121b58cd6bd3209a7c453aa
MD5 935c20d113743f2bdc7bba44a9257392
BLAKE2b-256 b46e8e18b5fb1270f138b228248c287945d4c633adcb56911a5dae37fafae947

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page