New API to specify device icon shown

Posted on
Thu Jan 01, 2015 4:32 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

New API to specify device icon shown

In Indigo 6.0.19 (API version 1.18) we now provide an override so plugins can specify which device state icon is shown. Note we don't currently have new icons in the UI, so some of the enumeration selectors will shown no icon (like wind speed sensor, wind direction, etc.). But in future versions of the UI (Indigo Touch, Mac client UI) those icons might be available, so it cannot hurt to choose the selector that most closely matches the icon you want for a device. There is also a selector for overriding the icon to None if the default behavior is picking an inappropriate icon and no icon is desired. In the future we hope to also allow plugins to specify their own custom icons, but that does not exist yet.

You might want to modify the RFXCOM plugin to take advantage of this new API, especially for some of the sensor types (like temperature sensors).

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 13 guests