evt.device.currentThermostatMode has to be more efficient than evt.device.currentValue("thermostatMode") However, I can't find documentation on it or other methods that exist for a thermostat. I remember using this method or something similar a long time ago on another platform, but that was so many brain cells ago.
I did find documentation for Capabilites that includes Methods, but have no idea how to get that data for a device.
I would appreciate a link to, or some code, that will get the methods for a device.
Whenever you have a device attribute that you might use with device.currentValue("attributeName"), you can also use device.currentAttributeName to mean the same thing -- in apps. Notice the capitalization of the first letter of the attribute name in the second form.