Has support for DLink Smart Plugs been dropped? (No, just not in GUI)

Wanting to avoid using DLink servers, I installed Home Assistant after seeing it was supposed to support my Smart Plug (DSP-W215)

However, upon installation, the DLink module was nowhere to be found.

There is also the issue that I have have limited success actually configuring the thing without using the Mydlink Home app (Mydlink lite only supports cameras).

The device is controlled by the patented, owned by Cisco, based on SOAP HNAP1 protocol. By navigating to http://192.168.0.60/HNAP1/ as described here I was able to find a link to the login page: /login.htm

Brief intermission to activate WPS to add device to my network after assigning it a static DHCP lease on the router

Logging in appears to just prompt me with custom HTTP headers to download (then reupload to plug?) firmware.

Firmware External Version: V1.10
Firmware Internal Version: V1.10B07
Date: 12, Jun, 2014
CheckSum: 0x072BA710
WLAN Domain: US/NA
Firmware Query: http://wrpd.dlink.com.tw/router/firmware/query.asp?model=DSP-W215_Ax_Default
Kernel: 2.6.31, B0066, Date=Thu, 31, Oct, 2013
Apps: 0543, Date=Wed, 11, Jun, 2014
WLAN Driver: ap121-9.2.0.915, B0008, Fri, 03, Aug, 2012
LAN MAC: 70:62:B8:XX:XX:XX
WLAN MAC: 70:62:B8:XX:XX:XX
SSID: DSP-XXXX
Factory Default= 0

Based on past forum posts about these devices, I am not the only one having trouble configuring them. I am also wondering if maybe Cisco sent a nastygram over their patented protocol.

This appears to be the relevant python code:

https://github.com/LinuxChristian/pyW215

Welcome to the forum. If the integration is not operating as you expect it to, you should post an issue here so that the developers are aware of the issue and can rectify it:

Please provide all requested information in the issue template.

So far the issue is that the “Dlink” integration is not in the list of integrations as expected.

Screenshot_2020-11-06 Integrations

2 Likes

So looks like I was missing two things.

  1. The module name was “d-link” not “DLink”
  2. Not all modules, including the d-link module, are configurable from the GUI.

(I still either have to make a “mydlink” account or reverse engineer the thing to update the firmware though).

If ever my search results turn up nothing I either make the search less specific (e.g. “link” in this case) or use google, (e.g. home assistant dlink).

Not all integrations are yet configurable from the UI. Work is continuing in this regard. Most new home assistant releases have a few more moved to the UI.

I suspect the “integrations” tab in the GUI is only showing my currently activated integrations, not the available ones. Solution to that one: click on the orange circle in the lower [right] with a “+” in it.

Edit: dyslexic with directions.

Update:

Looks like it works (with the “use_legacy_protocol” option set to “true”) with the old firmware.

Probably still a good idea to look into updating the firmware due to the known root exploits.

It did not like being unplugged. The plug went back on the network OK, but Home Assistant was not able to find it anymore. A complete restart “fixed” it, but I feel that should not be needed.

The module name is “dlink”. It is just listed as D-Link in the search results for some reason.

After some struggle I managed to get the integration with the DSP-W215 work so that I can create a card and toggle the switch on/off from the dashboard. But I cant create any automation for it. It does not show up as a device under automations, Anyone knows how to make automations with the DSP-W215?

How did you get it to work?
I have managed to get my two plugs recognised by HA, but they are just marked as unavailable and won’t let me toggle them.
I’m not sure if this is related to the D-Link cloud service shutdown 18 months ago or a resolvable bug.
Frankly I was surprised when the plugs didn’t brick themselves back then.