Fetching Physical Location of a Device/Hub into Edge Driver

Hi everyone,

I am currently working with Edge Drivers and was wondering if there’s a way to fetch the physical location of a device or hub as a variable within the driver.

Is there any built-in API, capability, or class in the SmartThings ecosystem that allows this? Alternatively, are there any third-party APIs or integrations that can help retrieve this information?

Any guidance or suggestions would be greatly appreciated.

Thank you!

What do you mean location of a device ? Worldwide or inside of the house ?

It probably would be a security flaw if the hub could let the driver know its location worldwide.

I mean inside the house also works.

I want to fetch this attribute, that shows in the SmartThings app:

Hi, @Dhrupad
That information isn’t included in the device or driver object and Edge drivers cannot access Internet, so, it is not possible to get that value within a Driver.

That information is only available through the API. In the device’s details, you’ll find a property with the locationId where the device is installed.