Hi:
I have a mikrotik router. I configure it at configuration.yaml but after reboot log show this:
Error setting up platform mikrotik
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/device_tracker/init.py”, line 177, in async_setup_platform
platform.get_scanner, hass, {DOMAIN: p_config})
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/mikrotik/device_tracker.py”, line 38, in get_scanner
scanner = MikrotikScanner(config[DOMAIN])
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/mikrotik/device_tracker.py”, line 70, in init
self._update_info()
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/mikrotik/device_tracker.py”, line 181, in _update_info
device_names = self.client(cmd=’/ip/dhcp-server/lease/getall’)
File “/usr/local/lib/python3.7/site-packages/librouteros/api.py”, line 80, in call
return self._readResponse()
File “/usr/local/lib/python3.7/site-packages/librouteros/api.py”, line 103, in _readResponse
reply_word, words = self._readSentence()
File “/usr/local/lib/python3.7/site-packages/librouteros/api.py”, line 88, in _readSentence
reply_word, words = self.protocol.readSentence()
File “/usr/local/lib/python3.7/site-packages/librouteros/connections.py”, line 147, in readSentence
sentence = tuple(word for word in iter(self.readWord, b’\x00’))
File “/usr/local/lib/python3.7/site-packages/librouteros/connections.py”, line 147, in
sentence = tuple(word for word in iter(self.readWord, b’\x00’))
File “/usr/local/lib/python3.7/site-packages/librouteros/connections.py”, line 164, in readWord
return self.transport.read(length).decode(encoding=self.encoding, errors=‘strict’)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xf1 in position 32: invalid continuation byte
I can see how user “homeassistant” connect with my mikrotik but after 3 seconds ha is disconnected.