Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106473

Unknown location when using MQTT device tracker with OwnTracks

$
0
0

I’m having issues when using MQTT as a device tracker with OwnTracks.
First, here’s the MQTT part of my configuration.yaml:

mqtt:
  - device_tracker:
      name: "phone1"
      state_topic: "owntracks/user1/phone1"
      unique_id: device_tracker-phone1
      source_type: gps
  - device_tracker:
      name: "phone2"
      state_topic: "owntracks/user2/phone2"
      unique_id: device_tracker-phone2
      source_type: gps

Using MQTT5 Explorer, I found that locations are being published correctly to MQTT:

{"_type":"location","BSSID":"ab:cd:ef:gh:ij:kl","SSID":"my_WIFI","_id":"12345678","acc":8,"alt":150,"batt":43,"bs":1,"cog":0,"conn":"w","created_at":1742144273,"inregions":["Home"],"lat":50.123123123123,"lon":10.123123123123,"m":1,"t":"p","tid":"ab","tst":1742141555,"vac":92,"vel":0}

Now, the device tracker is being recognized by HA, however the location is always being shown as “Unknown”.

Do I need to setup something else to have HA be able to get the device locations?

Thanks a lot in advance

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106473

Trending Articles