2017-05-26 14:11:03 +00:00
|
|
|
"""
|
|
|
|
This module provides a way to interface with TP-Link's smart home devices,
|
|
|
|
such as smart plugs (HS1xx), wall switches (HS2xx), and light bulbs (LB1xx).
|
|
|
|
|
|
|
|
All common, shared functionalities are available through `SmartDevice` class::
|
|
|
|
|
|
|
|
x = SmartDevice("192.168.1.1")
|
|
|
|
print(x.sys_info)
|
|
|
|
|
|
|
|
For device type specific actions `SmartBulb` or `SmartPlug` must be used instead.
|
|
|
|
|
|
|
|
Module-specific errors are raised as `SmartDeviceException` and are expected
|
|
|
|
to be handled by the user of the library.
|
|
|
|
"""
|
2017-01-17 13:38:44 +00:00
|
|
|
# flake8: noqa
|
2017-04-14 12:24:58 +00:00
|
|
|
from .smartplug import SmartPlug
|
2017-05-26 14:11:03 +00:00
|
|
|
from .pyHS100 import SmartDevice
|
|
|
|
from .types import SmartDeviceException
|
2017-04-14 12:24:58 +00:00
|
|
|
from .smartbulb import SmartBulb
|
2017-04-24 17:28:22 +00:00
|
|
|
from .protocol import TPLinkSmartHomeProtocol
|