Skip to main content

Single Value Mode

Single Value Mode displays a single numeric value with various visual representations and optional animations.

Basic Settings

SettingDescription
Read only modeWhen enabled, value only changes via datasource. When disabled, value can change via commands
Minimum ValueLower bound of the value range
Maximum ValueUpper bound of the value range
Default ValueInitial value when no datasource is bound (Only visible when Read only mode is OFF)
Default step valueAmount to increase/decrease by default (Only visible when Read only mode is OFF)
Reset at maximumWhen enabled, value resets to minimum when maximum is reached (Only when Read only is OFF)

Appearance Options

Single Value Mode offers five appearance styles:

AppearanceDescription
NumberNumeric display with animation options
ProgressbarLinear, vertical, or circular progress indicators
ColorColor-changing background based on value
GaugeSpeedometer-style dial indicator
CharactersText or icon-based visual representation

Datasource

The widget can:

  1. Read values from bound data sources
  2. Write values back to data sources (if the read only mode is disabled and if in displayer)
  3. Support both simple values and complex objects with value and config properties

Expects a single numeric value or an object with:

PropertyTypeRequiredDescription
valuenumberYesThe current value
config.minnumberNoOverrides minimum setting
config.maxnumberNoOverrides maximum setting
config.defaultValuenumberNoDefault value
config.defaultStepnumberNoStep increment

Data structure example:

{
value: 10,
config: {
min: 0,
max: 100,
defaultValue: 0,
defaultStep: 1
}
}

External messages

CommandParametersDescription
Increase byvalue: number (optional)Add to current value. Uses default step if not specified
Decrease byvalue: number (optional)Subtract from current value. Uses default step if not specified
Set value tovalue: number (required)Set to exact value
Reset valuenoneReset to default value
Settings to dataSourcenoneExport config to datasource
Set to randomnoneSet to random value in range

Sensor Events

Event NamePayloadTrigger
ReachedMaximummax valueValue reaches maximum
ReachedMinimummin valueValue reaches minimum
Increasedcurrent valueValue was increased
Decreasedcurrent valueValue was decreased
Data source changedcurrent valueValue updated to datasource

Usage Notes

  • Commands are only processed in Displayer Mode
  • Commands sent to widgets with Read only mode enabled will only work for datasource-related operations
  • The Settings to dataSource command exports the current configuration for external processing or for ease of re-use