When running from command prompt I got:
Traceback (most recent call last):
File "H:\custom_components\binary_sensor\dlink.py", line 12, in <module>
from pysimplesoap.client import SoapClient
ImportError: No module named 'pysimplesoap'
I originally thought it was unrelated but here is more info from the HASS log that now seems relevant:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_component.py", line 361, in async_process_entity
new_entity, self, update_before_add=update_before_add
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_component.py", line 189, in async_add_entity
yield from entity.async_update()
File "/home/michael/.homeassistant/custom_components/binary_sensor/dlink_motion_sensor.py", line 84, in async_update
last_trigger = yield from self._motion_sensor.latest_trigger()
File "/home/michael/.homeassistant/custom_components/binary_sensor/dlink.py", line 160, in latest_trigger
log_list = resp.MotionDetectorLogList
File "/home/michael/.homeassistant/deps/pysimplesoap/simplexml.py", line 251, in __getattr__
return self.__call__(tag)
File "/home/michael/.homeassistant/deps/pysimplesoap/simplexml.py", line 247, in __call__
raise AttributeError("Tag not found: %s (%s)" % (tag, e))
AttributeError: Tag not found: MotionDetectorLogList (No elements found)
FYI - my /deps folder contains âpysimplesoapâ and âPySimpleSOAP-1.16-py3.5.egg-infoâ