Get device type in SmartApp


#1

Hi,

I’m trying to get the type of a device as found on the “Show Device” detail page in my account. One example is type = GE Link Bulb

Is this possible from within a SmartApp? I’m currently getting all my devices in my SmartApp, but would like to gather more info. The Device API doesn’t have the same fields as the “Show Device” detail page and seems like it should.

Thank you,

Thomas


(Geko) #2

That would be device.typeName


#3

Thank you. That field is not listed on this page: http://docs.smartthings.com/en/latest/ref-docs/device-ref.html


(Danroot) #4

Wish I’d found this post sooner :wink: I submitted a pull request to add it to the docs: