Skip to main content

Python library for interfacing with konke smart appliances

Project description

This library (and its accompanying cli tool) is used to interface with
Konke remote-control devices.

Supported Devices

- Mini K
- Mini Pro
- Smart Plug K(untested)
- K2 Pro(untested)

.. code-block:: bash

pip install pykoneio

API Reference

- class **Switch** (ip) create a instance of a switch
- *check()* get switch's status
- *turn_on()* turn on the switch
- *turn_off()* turn off the switch


.. code-block:: python

from pykonkeio import Switch

switch = Switch('')

if switch.status == 'open':
elif switch.status == 'close':
elif switch.status == 'offline':
print('switch is off line')

CLI Command

- search device

.. code-block:: bash

koneio search

- check device status

.. code-block:: bash

koneio check -a [device ip address]

- turn on switch

.. code-block:: bash

koneio open -a [device ip address]

- turn off switch

.. code-block:: bash

koneio close -a [device ip address]

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

pykonkeio-1.0.6.tar.gz (3.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page