Simple Yeelight Room control CLI written in Python. Control your lights from terminal.
pip install yee-cli
- 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 orYEE_ROOM_CONFIG
env variable - To find bulb IPs use tools like
nmap
,nutty
or check on your YeeLight app
yee [-c --config] [ROOM_NAME*] COMMAND [ARGS]...`
*Use room names from config
Example Usage:
yee bedroom on
yee bedroom dim 10
yee color_list
yee bedroom 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.
- Connection Issues (make sure):
- IP addresses of bulbs in config are correct.
- LAN Control is ON (https://www.yeelight.com/faqs/lan_control).
- You are connected to same WIFI network as your bulbs.
- Other:
- For more debug ideas visit https://github.com/skorokithakis/python-yeelight
- If your bulb IP addresses keep changing you may want to set static DHCP lease on your router.
- Wouldn't be possible without skorokithakis/python-yeelight.
- Uses webcolors
- Uses click
- Created with Cookiecutter and the johanvergeer/cookiecutter-poetry project template.
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