Read device attribute from inside an app

Is there anyway to read a devices attribute from within an app without actually subscribing to the event attribute and saving this in a State Variable for latter use?

This is for an app / child device setup.

Check out device.currentValue('attribute'): Device Object - Hubitat Documentation

ok I'll check that out, I was under the impression that the device object was only available within the device driver code not from an app, so I didn't even think of trying that :man_facepalming:

Thanks!

from the App, you can call getChildDevices(), or getChildDevice(networkId), to find the device object you want to call currentValue. Example: google-sdm-api/sdm-api-app.groovy at develop 路 dkilgore90/google-sdm-api 路 GitHub

Even more details, thanks a bunch!