2019-11-11 21:14:34 +00:00
|
|
|
"""Python interface for TP-Link's smart home devices.
|
2017-05-26 14:11:03 +00:00
|
|
|
|
|
|
|
All common, shared functionalities are available through `SmartDevice` class::
|
|
|
|
|
|
|
|
x = SmartDevice("192.168.1.1")
|
|
|
|
print(x.sys_info)
|
|
|
|
|
2019-11-11 21:14:34 +00:00
|
|
|
For device type specific actions `SmartBulb`, `SmartPlug`, or `SmartStrip`
|
|
|
|
should be used instead.
|
2017-05-26 14:11:03 +00:00
|
|
|
|
|
|
|
Module-specific errors are raised as `SmartDeviceException` and are expected
|
|
|
|
to be handled by the user of the library.
|
|
|
|
"""
|
2019-12-18 08:11:18 +00:00
|
|
|
from kasa.discover import Discover
|
|
|
|
from kasa.protocol import TPLinkSmartHomeProtocol
|
|
|
|
from kasa.smartbulb import SmartBulb
|
|
|
|
from kasa.smartdevice import DeviceType, EmeterStatus, SmartDevice, SmartDeviceException
|
2020-04-18 21:35:39 +00:00
|
|
|
from kasa.smartdimmer import SmartDimmer
|
2019-12-18 08:11:18 +00:00
|
|
|
from kasa.smartplug import SmartPlug
|
|
|
|
from kasa.smartstrip import SmartStrip
|
2019-11-11 18:26:06 +00:00
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
"Discover",
|
|
|
|
"TPLinkSmartHomeProtocol",
|
|
|
|
"SmartBulb",
|
|
|
|
"DeviceType",
|
|
|
|
"EmeterStatus",
|
|
|
|
"SmartDevice",
|
|
|
|
"SmartDeviceException",
|
|
|
|
"SmartPlug",
|
|
|
|
"SmartStrip",
|
2020-04-18 21:35:39 +00:00
|
|
|
"SmartDimmer",
|
2019-11-11 18:26:06 +00:00
|
|
|
]
|