Problem with Dlink w215 smart plug

Hello!

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/entity.py”, line 199, in async_update_ha_state
yield from self.async_device_update()
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 306, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/lib/python3.6/asyncio/futures.py”, line 332, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.6/asyncio/tasks.py”, line 250, in _wakeup
future.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 245, in result
raise self._exception
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/switch/dlink.py”, line 126, in update
self.data.update()
File “/usr/lib/python3.6/site-packages/homeassistant/components/switch/dlink.py”, line 142, in update
self.state = self.smartplug.state
File “/usr/lib/python3.6/site-packages/pyW215/pyW215.py”, line 261, in state
response = self.SOAPAction(‘GetSocketSettings’, ‘OPStatus’, self.moduleParameters(“1”))
File “/usr/lib/python3.6/site-packages/pyW215/pyW215.py”, line 132, in SOAPAction
self.authenticated = self.auth()
File “/usr/lib/python3.6/site-packages/pyW215/pyW215.py”, line 319, in auth
Challenge = root.find(’.//{http://purenetworks.com/HNAP1/}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?