I just set up a new instance of home assistant V49.0 on Hassbian. The device_tracker had been working for me previously on the V43.0 using all-in-one installation.
Here is the log:
017-07-22 14:28:47 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.tplink
2017-07-22 14:28:47 INFO (Thread-6) [homeassistant.components.device_tracker.tplink] Loading wireless clients…
2017-07-22 14:28:47 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform tplink
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/init.py”, line 151, in async_setup_platform
platform.get_scanner, hass, {DOMAIN: p_config})
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/tplink.py”, line 39, in get_scanner
scanner = cls(config[DOMAIN])
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/tplink.py”, line 63, in init
self.success_init = self._update_info()
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/util/init.py”, line 303, in wrapper
result = method(*args, **kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/tplink.py”, line 394, in _update_info
password_md5 = hashlib.md5(self.password).hexdigest().upper()
TypeError: Unicode-objects must be encoded before hashing
I had used an encrypted password before with no problem. I also tried using an unencrypted password.
Configuration.yaml
device_tracker:
- platform: tplink
host: 192.168.1.1
username: admin
password:
interval_seconds: 12
consider_home: 240
track_new_devices: yes
Any ideas?