Interface for d-link W215 Smart Plugs.
Project description
pyW215
======
pyW215 is a python3 library for interfacing with the d-link W215 Smart
Plug.
The library is largely inspired by the javascript implementation by
@bikerp `dsp-w215-hnap`_.
Installing
=====
Install using the PyPI index
.. code:: bash
pip install pyW215
Usage
=====
.. code:: python
#!python3
from pyW215.pyW215 import SmartPlug, ON, OFF
sp = SmartPlug('192.168.1.110', '******')
# Where ****** is the "code pin" printed on the setup card
# Get values if available otherwise return N/A
print(sp.current_consumption)
print(sp.temperature)
print(sp.total_consumption)
# Turn switch on and off
sp.state = ON
sp.state = OFF
Note: You need to know the IP and password of your device. The password is written on the side.
Working firmware versions
=========================
- v2.02
- v2.03
- v2.22
Note: If you experience problems with the switch upgrade to the latest supported firmware through the D-Link app. If the problem persists feel free to open an issue about the problem.
Partial support
---------------
- v1.24 (State changing and current consumption working, but no support for reading temperature)
- D-Link W110 smart switch D-Link W110 smart switch (only state viewing and changing is supported)
If you have it working on other firmware or hardware versions please let me know.
.. _dsp-w215-hnap: https://github.com/bikerp/dsp-w215-hnap
======
pyW215 is a python3 library for interfacing with the d-link W215 Smart
Plug.
The library is largely inspired by the javascript implementation by
@bikerp `dsp-w215-hnap`_.
Installing
=====
Install using the PyPI index
.. code:: bash
pip install pyW215
Usage
=====
.. code:: python
#!python3
from pyW215.pyW215 import SmartPlug, ON, OFF
sp = SmartPlug('192.168.1.110', '******')
# Where ****** is the "code pin" printed on the setup card
# Get values if available otherwise return N/A
print(sp.current_consumption)
print(sp.temperature)
print(sp.total_consumption)
# Turn switch on and off
sp.state = ON
sp.state = OFF
Note: You need to know the IP and password of your device. The password is written on the side.
Working firmware versions
=========================
- v2.02
- v2.03
- v2.22
Note: If you experience problems with the switch upgrade to the latest supported firmware through the D-Link app. If the problem persists feel free to open an issue about the problem.
Partial support
---------------
- v1.24 (State changing and current consumption working, but no support for reading temperature)
- D-Link W110 smart switch D-Link W110 smart switch (only state viewing and changing is supported)
If you have it working on other firmware or hardware versions please let me know.
.. _dsp-w215-hnap: https://github.com/bikerp/dsp-w215-hnap
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pyW215-0.5.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1764bd3d688be8dda6aaa5dd930b09c48ee553ab1f5ad4716e8f7a6c2d70d52 |
|
MD5 | 64cc1cb72dbb0f750daad04ea454a091 |
|
BLAKE2b-256 | 9d33ce5e6f3e2637d69fe7aba3f4c8f67b52a3f8c08efdb2c0dc1990ddc4f7b7 |