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)
Install
=======

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

Demo:

.. code-block:: python

from pykonkeio import Switch

switch = Switch('192.168.0.222')

if switch.status == 'open':
switch.turn_off()
elif switch.status == 'close':
switch.turn_on()
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 details)

Uploaded Source

File details

Details for the file pykonkeio-1.0.6.tar.gz.

File metadata

  • Download URL: pykonkeio-1.0.6.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for pykonkeio-1.0.6.tar.gz
Algorithm Hash digest
SHA256 4c7d866266e8e6aecd4b1962013e4b571b0f5f7f1ba9a3ab81778816df7b9f9b
MD5 889a11607c1949b06a9cdbe935ff791f
BLAKE2b-256 8eb26b026f20ea49d6ae8a7ea35a67049d80e6c799183e24616c059ce68a8062

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