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 K](
- Mini Pro
![Mini Pro](!!2259671767.jpg_430x430q90.jpg)
- Smart Plug K(untested)
- K2 Pro(untested)

# Install
pip install pykone

# 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

from pykonke 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
pykone search

- check device status
pykone check -a [device ip address]

- turn on switch
pykone open -a [device ip address]

- turn off switch
pykone 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.

Files for pykonkeio, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pykonkeio-1.0.2.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page