Core: Owntracks: Unsupported message type (_lwt)

Created on 8 Oct 2017  ·  6Comments  ·  Source: home-assistant/core

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.55.0

Python release (python3 --version):
3.5.3

Component/platform:
Owntracks

Description of problem:
I get error messages for an unsupported message type:_lwt and then a traceback NoneType object is not callable

Expected:
If decided to leave _lwt (last will and testament) message by owntracks unsupported, clean up the log so we don't get the traceback. Otherwise, support _lwt messages.

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




    1. 2.
  1. 3.

Traceback (if applicable):

2017-10-08 07:54:27 WARNING (MainThread) [homeassistant.components.device_tracker.owntracks] Received unsupported message type: lwt.
2017-10-08 07:54:27 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/var/opt/hass/lib/python3.5/site-packages/homeassistant/components/device_tracker/owntracks.py", line 80, in async_handle_mqtt_message
    yield from async_handle_message(hass, context, message)
  File "/var/opt/hass/lib/python3.5/site-packages/homeassistant/components/device_tracker/owntracks.py", line 413, in async_handle_message
    yield from handler(hass, context, message)
TypeError: 'NoneType' object is not callable

Additional info:

Most helpful comment

This is the regular owntracks (mqtt) not the http version.

On Oct 10, 2017 10:33 PM, "Paulus Schoutsen" notifications@github.com
wrote:

This should really be fixed in OwnTracks. HTTP is stateless so there
should be no will submitted


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/9748#issuecomment-335582962,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABTZcHg2NPWVAOPLacgMNsam9u9_PjkWks5sq8Z5gaJpZM4PxmH9
.

All 6 comments

Having the same issue, running HA 0.55 and Python 3.6.0:

2017-10-08 10:42:13 WARNING (MainThread) [homeassistant.components.device_tracker.owntracks] Received unsupported message type: lwt.
2017-10-08 10:42:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 179, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/device_tracker/owntracks.py", line 80, in async_handle_mqtt_message
    yield from async_handle_message(hass, context, message)
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/device_tracker/owntracks.py", line 413, in async_handle_message
    yield from handler(hass, context, message)
TypeError: 'NoneType' object is not callable

Throwing in my two cents that I'm seeing this issue also. 👍🏻

This should really be fixed in OwnTracks. HTTP is stateless so there should be no will submitted

This is the regular owntracks (mqtt) not the http version.

On Oct 10, 2017 10:33 PM, "Paulus Schoutsen" notifications@github.com
wrote:

This should really be fixed in OwnTracks. HTTP is stateless so there
should be no will submitted


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/9748#issuecomment-335582962,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABTZcHg2NPWVAOPLacgMNsam9u9_PjkWks5sq8Z5gaJpZM4PxmH9
.

I just update HA 0.59.2 and still have this error
Is this same error? How to fix?

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/owntracks.py", line 82, in async_handle_mqtt_message
    yield from async_handle_message(hass, context, message)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/owntracks.py", line 461, in async_handle_message
    yield from handler(hass, context, message)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/owntracks.py", line 270, in async_handle_location_message
    dev_id, kwargs = _parse_see_args(message)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/owntracks.py", line 109, in _parse_see_args
    user, device = _parse_topic(message['topic'])
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/owntracks.py", line 96, in _parse_topic
    _, user, device, *_ = topic.split('/', 3)
ValueError: need more than 2 values to unpack
Was this page helpful?
0 / 5 - 0 ratings

Related issues

grantalewis picture grantalewis  ·  145Comments

neotrunks picture neotrunks  ·  169Comments

aguilaair picture aguilaair  ·  162Comments

kdschlosser picture kdschlosser  ·  374Comments

winterscar picture winterscar  ·  251Comments