Selector -> Select -> mapping: Add additional datatypes to value

Hi,

I would like to suggest adding additional datatypes to the mappings option of select selector. My most used use-case for this type of mapping is “explaining” numerical input in words. But the numerical input used as the Value part of the mapping is currently tied to being a String and must therefore be cast to int before usage.

This makes it confusing not only for myself but for others if I share my code.
See the image as an example.

I have a siren with multiple types of melodies, to set them I use integers in a service-call to my device.
But in my script fields I want the user to select from a list of names representing every melody instead
of an arbitrary number.

Now if someone wants to use this script without the UI they are expected to know what field requires a numerical string and a numerical value which only opens up for more confusion.

Thank you for reading :slight_smile:
Remember to hit the Vote button!