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-11-11 21:14:34 +00:00
|
|
|
from .discover import Discover # noqa
|
|
|
|
from .protocol import TPLinkSmartHomeProtocol # noqa
|
|
|
|
from .smartbulb import SmartBulb # noqa
|
|
|
|
from .smartdevice import ( # noqa
|
|
|
|
DeviceType,
|
|
|
|
EmeterStatus,
|
|
|
|
SmartDevice,
|
|
|
|
SmartDeviceException,
|
|
|
|
)
|
|
|
|
from .smartplug import SmartPlug # noqa
|
|
|
|
from .smartstrip import SmartStrip # noqa
|