8000 Device tracker Mikrotik not working · Issue #7575 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Device tracker Mikrotik not working #7575
Closed
@bachulator

Description

@bachulator

Home Assistant release (hass --version):
/srv/homeassistant/homeassistant_venv/bin/hass --version
0.44.1
/srv/homeassistant/homeassistant_venv/bin/python3 -V
Python 3.4.2

Component/platform:
device_tracker:mikrotik

Description of problem:
Hi,

Mikrotik device tracker return exception error while parsing wireless devices. In my setup I am running multiple AP instances which might be reason of this exception? Or perhaps naming?

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

platform: mikrotik
    host: 192.168.88.1
    username: ha
    password: ! top secret pass
    port: ! top secret port 

**Traceback (if applicable):**
ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 698, in async_device_tracker_scan
    found_devices = yield from scanner.async_scan_devices()
  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 99, in scan_devices
    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 114, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0