Expanded text attributes for uiValue
Posted: Sat Nov 25, 2017 2:56 pm
For custom plugin devices: Allow additional attributes for the updateStateOnServer() uiValue. Presently the uiValue is rendered as simple black text. The only available option is to use setErrorStateOnServer() which renders all text, not just the uiValue text, for the device in red.
When setting the uiValue to be displayed as a custom device/s state, I would like to have an option to set the color value, and possibly a style for the uiValue text. This might be limited to a small set of predefined colors, or ;possibly an arbitrary RGB value. Style options might be bold or italic.
For example:
When setting the uiValue to be displayed as a custom device/s state, I would like to have an option to set the color value, and possibly a style for the uiValue text. This might be limited to a small set of predefined colors, or ;possibly an arbitrary RGB value. Style options might be bold or italic.
For example:
- Code: Select all
dev.updateStateOnServer(key='displayState', value="foobar", uiValue="foobar", uiValColor="orange", uiValStyle="bold)
or...
dev.updateStateOnServer(key='displayState', value="foobar", uiValue="foobar", uiValColor="ff9900", uiValStyle="italic)
- foobar vs foobar vs foobar