Problem with Dlink w215 smart plug


I have a DLink smart plug W215 but i cant control the device via HA.

I have the error

Update for switch.dlink_smart_plug_w215 fails
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/”, line 199, in async_update_ha_state
yield from self.async_device_update()
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/”, line 306, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/lib/python3.6/asyncio/”, line 332, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.6/asyncio/”, line 250, in _wakeup
File “/usr/lib/python3.6/asyncio/”, line 245, in result
raise self._exception
File “/usr/lib/python3.6/concurrent/futures/”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/switch/”, line 126, in update
File “/usr/lib/python3.6/site-packages/homeassistant/components/switch/”, line 142, in update
self.state = self.smartplug.state
File “/usr/lib/python3.6/site-packages/pyW215/”, line 261, in state
response = self.SOAPAction(‘GetSocketSettings’, ‘OPStatus’, self.moduleParameters(“1”))
File “/usr/lib/python3.6/site-packages/pyW215/”, line 132, in SOAPAction
self.authenticated = self.auth()
File “/usr/lib/python3.6/site-packages/pyW215/”, line 319, in auth
Challenge = root.find(’.//{}Challenge’).text
AttributeError: ‘NoneType’ object has no attribute ‘text’

I’m using HA 0.60.0
DLINK V. 1.25

Thank you for your help!

Could you post your config? This error could be a communication error.
You’re sure your ip, username and password are correct?