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!!


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