I’m writing a Smart App that allows control of various devices via a cloud-based application. When the Smart App initializes I would like for it to call a remote API method to obtain a unique GUID (stored cloud-side), by provided its MAC address. How do it grab the Smart Things Hub’s MAC address with Groovy?
I don’t believe that the MAC is exposed however, if I understand what you are trying to do correctly, hub.id
should it:
http://docs.smartthings.com/en/latest/ref-docs/hub-ref.html?highlight=device.hub#getid