- Posted on
Tue Jul 20, 2021 3:19 am
-
berkinet
offline
-
- Posts: 3290
- Joined: Nov 18, 2008
- Location: Berkeley, CA, USA & Mougins, France
html is interesting. But, in this case, I'd prefer to keep all the controls in the same interface.
However, a different, but related question. In the case of the physical device, the most common use will be as a binary on/off output controlling some external device. Even though duty-cycle control is available, it will only be rarely used, at least for now.
However, for a dimmer device the default displayStateId is brightnessLevel. So, I started to look at forcing that to something else, like onOffState, or just on or off. I can set uiValue to on or off and get the display state I want. But, then the min/max controls on the dimmer slider also display on and off instead of o and 100.
Is there a way to use an on/off value as the display state, and still keep the default slider display?