Checking on device capabilities?

(Eric) #1

I’m working on a SmartApp that uses two temperature sensors to compare indoor and outdoor conditions. I’m currently using the SmartWeather Tile device to handle outdoor temps, but I’d like my app to support physical devices as well.

The problem is that the SW tile doesn’t seem to update or poll automatically, and if it does, it does it very infrequently. I want to issue a device.refresh() command, but it seems like physical devices such as the Multi don’t allow that.

How can I test to see whether a device can be refreshed?