Allow user to select which property gets highlighted #1826
As mentioned in this issue, it would be great if the user can select which property gets to take the 'center stage' spot in a device.
One reason this came up is because of the MySensors add-on. The MySensors Arduino library allows users to create any combination of properties in a new device.
In practise, it was hard to match all MySensors possibilities to existing properties from the Mozilla schema. The result is that
As a user I'd like to manually select which property is highlighted in the things overview. I'd like to make sure that there is always something highlighted. I want to avoid the generic 'thing' display.
Another option that was discussed is to create a new more universal type/property pair that can act as a 'backup' property in case a more perfect choice is not available.
To see the issue in code, have a look at this file from the adapter. There you can see that the strict Mozilla schema could only be followed in a small number of cases.
Here are some sketches:
As a user I don't really care that the icon for a thing represents it 'correctly' from a schema point of view. If I have a lot of things, and if I have multiple temperature sensors or multiple plant moisture sensors, I would just get a sea of similar things. I'd have to check the name to know which one if for which room/plant.
But if I can select different icons for each thing, and I want to know what the temperature in my daughters bedroom is, then I can quickly scan for the device with the unicorn icon. Or I can visually scan for the device that has the icon of the plant.
I really like this idea. Even for completely custom things, show the list of properties of that thing and let the user pick one to be the default value to display with the icon. What about a thing with actions and events? When would it be valuable for the Edit menu to also include a listing of the things' actions and events?