How to add discontinuous values as the preferences item's input?

Hello, everyone:
Here in my DTH, A preference item has inpu value(0–99 and 255), How to set ?
Normally, to the continuous values, I use the parameter “range”, but here they are discontinuous values.
I figured it might be possible to do this with a dropdown list - but that looks bad, right?

Hi!

Discontinuous ranges are not supported, but you can do the following:

  1. When you check the setting value, validate it is inside the accepted values
  2. Or separate it into two different settings, one for range 0-99 and the other to enable/disable (boolean type) the max value and apply the corresponding conditions.

Note: Please, remember that a DTH (Groovy-based) is part of the legacy platform and will become unavailable at some point. Once this happens, your customers won’t be able to pair their devices with the DTH, only the default generic Edge drivers.

Take a look at these announcements:

1 Like

I’ll try it as you said. I’m glad to hear about the Edge drivers - I’ve been busy with other projects for the last few months and haven’t browsed the forums. Maybe next time I can jump into the Edge drivers development entirely!