I’d like to show all devices, created by the driver.
I’m looking for something similar to “Connected devices” in Hub’s detail view.
It would be absolutely awesome if it would be possible to dynamically populate this view, so custom filtering could be implemented (For example, if user selects a ‘switch’ then show only switches, if he selects a lock then only locks, etc)
You can get the Ids of the devices created with the driver using driver.device_api.get_device_list().
However, a view similar to “Connected devices” is not possible to configure yet:
From the driver, you cannot make requests to the ST API (to get the device name for example)
The view of “Connected devices” is a custom UI, that’s why it includes icons
What you can do is:
Showing only the device IDs in a custom capability of the device.
Create a SmartApp that would help you visualize the device list, filtering by the categories you mention
(Custom) capability, populated in run-time and showing multiple entries is exactly what I need.
What display type should I use for that?
Basically,I’m looking for read only list view or a tree view, similar to the files view in Windows explorer.
I was trying to use textField display type, but it truncates a string and also does not support end lines.
List display type is shown as a button in detailed view and only when this button is pressed shows the entries.
I’m looking for display type that would show entries in detailed view.
You can try using html tags. Some are actually recognized, so you can have some control of your text output. I don’t think it’s officially supported but it works!
Thank you very much again for the idea using html tags in text field. Text only works fine. However, I can’t figure out how to embed images.
I was trying to do it like this: <img src=>
but the images are not loaded.
I suspect any external http links are blocked due to security reasons, but I also wasn’t able to load images, that I put into driver or driver/src directories.
Is there any way to put custom icons into the driver or perhaps provide links to stock icons that are already in the app?
Thank you