Hi All,
I’ve been playing around with HA for the past 2 weeks and enjoying it. I’m getting a nice build together by referencing these forums and the guides. Everything was going smoothly, but I’m finally bumping into an issue I’m not understanding. Like some users, I have been having trouble with presence detection using owntracks and MQTT. I’m using HASS.IO 0.52.1 and the built-in Mosquitto 1.0 broker.
Following community guides I have Android Owntracks status showing it connected and the Mosquitto logs in HA shows the client connected and receiving information:
1504706888: New client connected from 70.214.xxx.xx as homeassistantme (c0, k3600, u'homeassistant')
Following the HA guide, I’ve added mosquitto with my PI’s local ip as the broker and the owntracks device tracker my configurations.yaml file
mqtt:
broker: 192.168.x.xxx
device_tracker:
- platform: owntracks
I’m not seeing any device tracker entities or a “known_devices” file being created after several reboots and traveling with the phone. At this point, i’m not sure if it is an MQTT issue or a device tracker issue communicating with each other. I am seeing the following in the logs:
ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform owntracks
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/components/device_tracker/__init__.py", line 156, in async_setup_platform
hass, p_config, tracker.async_see, disc_info)
File "/usr/lib/python3.6/site-packages/homeassistant/components/device_tracker/owntracks.py", line 313, in async_setup_scanner
hass, LOCATION_TOPIC, async_owntracks_location_update, 1)
File "/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 237, in async_subscribe
yield from hass.data[DATA_MQTT].async_subscribe(topic, qos)
File "/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 535, in async_subscribe
_raise_on_error(result)
File "/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 644, in _raise_on_error
'Error talking to MQTT: {}'.format(mqtt.error_string(result)))
Thank you for any suggestions or ideas.