SmartThings API: How to Access Device Locations for "View in Map"?

:round_pushpin: SmartThings API: How to Access Device Locations for “View in Map”?

Hey SmartThings Community! :waving_hand:

I’m working on a script to retrieve device locations using the SmartThings API, similar to the “View in Map” feature in the app. However, when I query my devices, the latitude and longitude fields return None, even for devices that should support location tracking.

:magnifying_glass_tilted_right: What I’ve Tried So Far:

  1. Checked device status via API (/devices/{deviceId}/status) – Location fields exist but are always None.
  2. Fetched device capabilities (/devices/{deviceId}/components/main/capabilities) – No clear geolocation-related capabilities.
  3. Sent a refresh command (/devices/{deviceId}/commands) – No change in data.
  4. Tested with different devices (e.g., Samsung SmartTags, Mobile Presence) – Same issue.

:red_question_mark: Questions:

  • Does the SmartThings API support GPS location retrieval for devices like SmartTags, Mobile Presence, or other trackers?
  • Is there a way to force a location update via API?
  • Are there permissions or settings that need to be enabled for location data to be exposed?

Any insights would be greatly appreciated! :rocket:

Thanks in advance! :blush:

Hi, @UH_medical_devision

Thank you for replying to my message. I’ll respond here so it’s available for others that might have the same questions:

The geolocation information isn’t shared through the API since it is considered sensitive information.

Since the engineering team mentioned not sharing this information is intended, there are no options for you to enable filling this information.

How many devices do you have?
By “View in Map”, are you referring to the SmartThings Find app?

We have 200 devices,
I mean this button in the app:

‫בתאריך יום ה׳, 27 במרץ 2025 ב-0:59 מאת ‪SmartThings Developer Support via SmartThings Community‬‏ <‪notifications@smartthings.discoursemail.com‬‏>:‬