Interface for d-link W215 Smart Plugs.
pyW215 is a python3 library for interfacing with the d-link W215 Smart Plug.
Install using the PyPI index
pip install pyW215
#!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
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.
- v1.24 and v1.25 (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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pyW215-0.7.0-py3-none-any.whl (6.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size pyW215-0.7.0.tar.gz (5.6 kB)||File type Source||Python version None||Upload date||Hashes View|