Accessing Device Zone from SDK v3 (Driver/Device Context)

Hey :waving_hand:

I’m building a Homey Pro (SDK v3) app and need to retrieve the Zone name for a given device from within my app runtime (e.g. Driver / Device context).

From my research, it seems possible to get the device’s Zone via the SDK, however:

  • this.homey.zones is not available in the Driver / Device context

  • Using ManagerApi (e.g. this.homey.api.get(‘manager/devices/…’)) fails with Missing Session

  • The Device instance does not expose a zoneId via getData() or similar

What is the recommended / supported way to resolve a device’s Zone name at runtime within an app (without relying on HomeyScript or manual device settings)?

Thanks,

Gareth

Your app needs to use the Web API to be able to access zone information.