Variables

BOS offers the capability to create and manage a variety of variable types, including boolean, integer, double, mode, and string. These versatile variables can be seamlessly integrated into various aspects of the configuration, providing extensive flexibility and functionality. 


Image 4974

Below is a detailed overview of each variable type and their potential applications:

Boolean Variable:

  • Boolean variables store true/false values.
  • Ideal for toggling settings, managing state conditions, and creating conditional logic in your configuration.
  • A boolean variable can be used to turn device on/off, see current status of an alarm, etc.

Integer Variable:

  • Integer variables hold whole numbers.
  • Suitable for counting items, indexing arrays, and any scenario requiring numerical values without decimals.
  • An integer variable can be used to control fan speeds, shade position and any other full number value.

Double Variable:

  • Double variables store floating-point numbers, allowing for decimal precision.
  • Perfect for scenarios requiring precise measurements, calculations, and handling real numbers.
  • A double variable can store the precise temperature value from a sensor, consumption values, etc.

Mode Variable:

  • Mode variables are used to define different states or modes of operation within the system.
  • Useful for setting operational states, defining user modes, and managing configuration states.
  • A mode variable could be set to values like fan mode, heating modes, events and regimes.

String Variable:

  • String variables store text data.
  • Essential for handling text, such as names, descriptions, paths, and any alphanumeric data.
  • A string variable can store the name or identifier of a device, parsed text data can be stored under string as well.