A commandline client for controlling the Klyqa bulbs.
Using your klyqa account or dev mode for bulbs onboarded in dev mode.
It is written in python.
You can run the python script directly with
./bulb_cli.py
Use pip for installation of required dependency packages.
pip install -r requirements.txt
Tested and developed with Python v3.9.
or build it as docker container.
Build docker container for automatic required dependency download and easy handling from within the project folder.
docker build -t klyqa-bulb-cli .
docker run --net=host --rm -it klyqa-bulb-cli
or to keep the container running:
docker run --net=host --name=klyqa-bulb-cli --entrypoint=python3 -itd klyqa-bulb-cli
and then do a:
docker exec klyqa-bulb-cli python3 /bulb_cli.py
If you want more logging verbosity
--debug
--help
If you provide no bulb unit id and/or a command to send, the bulb discovery and selection will be shown and afterwards a command prompt.
Add username and password to the arguments
--username <emailaddress> --password <password>
Use production (default) or test host.
--prod or --test
tryLocalThanCloud (Default) for sending the command
--tryLocalThanCloud
Use
--local
for local only connection
Use
--cloud
for cloud only connection
Send request
--request
Setting color rgb
--color r g b
Selecting bulbs directly by unit ids seperated by commas ","
--bulb_unitids <bulb-unitid1>,<bulb-unitid2>,...
Scenes
--party, --TVtime, --fireplace, ...
For running the bulbs in the development configuration locally without a klyqa account and with the default development AES key.
--dev