Skip to main content

A commandline client for controlling Klyqa smart devices

Project description

Klyqa device control client

A commandline client for controlling your Klyqa devices.

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

./klyqa_ctl/klyqa_ctl.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 python script container

Build docker container for automatic required dependency download and easy handling from within the project folder.

docker build -t klyqa_ctl .

Run docker python script container

docker run --net=host --rm -it klyqa_ctl

or to keep the container running:

docker run --net=host --name=klyqa_ctl --entrypoint=python3 -itd klyqa_ctl

and then do a:

docker exec klyqa_ctl python3 /bulb_cli.py

Debug mode

If you want more logging verbosity

--debug

Help with all commands

--help

Interactive client

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.

Use klyqa user account

Add username and password to the arguments

--username <emailaddress> --password <password>

Hosts

Use production (default) or test host.

--prod or --test

Connection types

tryLocalThanCloud (Default) for sending the command

--tryLocalThanCloud

Use

--local

for local only connection

Use

--cloud

for cloud only connection

Examples commands

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, ...

Use dev env

For running the bulbs in the development configuration locally without a klyqa account and with the default development AES key.

--dev

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

klyqa_ctl-1.0.7.tar.gz (29.8 kB view details)

Uploaded Source

File details

Details for the file klyqa_ctl-1.0.7.tar.gz.

File metadata

  • Download URL: klyqa_ctl-1.0.7.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.12 CPython/3.10.6

File hashes

Hashes for klyqa_ctl-1.0.7.tar.gz
Algorithm Hash digest
SHA256 612e9fd3a878b00abaa8206b42ad8a8b634c4a24b7ea7cf5efd8aa21ea3be84e
MD5 0112fa0f78f802458185430b65505744
BLAKE2b-256 cc77cdbf39a803a00af8dfce3b7656252bbb190ab3124018f0dcc6880adaf944

See more details on using hashes here.

Supported by

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