How to walk the device graph and select all attributes / properties of a certain type, e.g. temperature?

Hi everybody

My dev skills are a little rusty but there must be a simple way to do this …

I need groovy code to parse the full device list for a given hub and great a list or map for any particular attribute type, e.g. to collect all the temperature values from all the devices that have this temperature

Can anyone point me in the right direction?

Many thanks!!

Jools

No need to walk the device graph or parse the full device list. You can go straight to it.

http://docs.smartthings.com/en/latest/getting-started/first-smartapp.html#preferences
http://docs.smartthings.com/en/latest/capabilities-reference.html#capabilities-taxonomy