Skip to content

mikrotik addon #8213

Closed
Closed
@huczas

Description

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.47.1

Python release (python3 --version):
Python 3.4.2

Component/platform:
Mikrotik

Description of problem:
Error in logfile:

2017-06-25 23:48:55 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform mikrotik
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/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/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/mikrotik.py", line 41, in get_scanner
    scanner = MikrotikScanner(config[DOMAIN])
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/mikrotik.py", line 71, in __init__
    self._update_info()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
    result = method(*args, **kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/mikrotik.py", line 142, in _update_info
    cmd='/interface/wireless/registration-table/getall'
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 80, in __call__
    return self._readResponse()
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 103, in _readResponse
    reply_word, words = self._readSentence()
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 89, in _readSentence
    words = dict(self.parseWord(word) for word in words)
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 89, in <genexpr>
    words = dict(self.parseWord(word) for word in words)
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 34, in parseWord
    _, key, value = word.split('=', 2)
ValueError: need more than 1 value to unpack

Expected:
I expect no error.

Problem-relevant configuration.yaml entries and steps to reproduce:

device_tracker:
  - platform: mikrotik
    host: 192.168.1.1
    username: Username
    password: Pa$$w0rd

Traceback (if applicable):

Additional info:

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions