I am trying to set up OwnTracks to do presence detection. I’m running on Hass.io, and installed the “MQTT Server & Web client” plugin. It appears to be working correctly. When I open the web client, I am able to publish packets and see packets pushed from the iOS OwnTracks app on my phone.
HA appears to see the MQTT setup, I get the little MQTT icon among the developer tools. However, trying to publish from there doesn’t seem to do anything.
Additionally, in my entities list, I don’t see anything that looks like the device tracker.
Since MQTT is working between the OwnTracks App and the Web client, this makes me think the problem is in the HA setup. Here are the relevant configuration blocks:
MQTT/Web settings:
{
"log_level": "debug",
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"web": {
"enabled": true,
"username": "!secret mqtt_broker_username1",
"password": "!secret mqtt_broker_password1",
"ssl": true
},
"broker": {
"enabled": true,
"enable_ws": true,
"enable_mqtt": true,
"enable_ws_ssl": true,
"enable_mqtt_ssl": true,
"allow_anonymous": false
},
"mqttusers": [
{
"username": "!secret mqtt_broker_username1",
"password": "!secret mqtt_broker_password1",
"readonly": false,
"topics": [
"#"
]
}
]
}
configuration.yaml :
mqtt:
broker: a0d7b954-mqtt
port: !secret mqtt_port
device_tracker:
- platform: owntracks
max_gps_accuracy: 200
waypoints: true
mqtt_topic: "owntracks/#"
Any advice would be appreciated.