LogoLogo
  • Welcome to the MOOST platform user manual
  • Platform Manual
    • Login
      • Forgot Password
    • Notifications
    • Rules
      • Rule Configurator
        • Data graph
        • Datasets
        • Condition
        • Streak
        • Message
        • Settings
        • Rule Simulator
        • Early Adopter
        • Command
      • Rule Language
        • Syntax
        • Data Types
        • Data Structures
        • Functions
          • AVG
          • COUNT
          • DISTINCT
          • EVAL
          • FILTER
          • GROUP_BY_DEVICE
          • GROUP_BY_TIME
          • MAX
          • MIN
          • POSITION
          • REVERSE
          • SORT
          • SUBSET
          • SUM
        • Operations
          • Plus
          • Minus
          • Multiply
          • Divide
          • Negate
          • Less Than
          • Less or Equal
          • Equal
          • Not Equal
          • Greater or Equal
          • Greater
          • AND
          • OR
          • NOT
          • Format
          • Attribute Accessor
        • Examples
    • Events
    • Buildings
      • Household Profile
    • User Profile
    • Billing Portal
      • Payment Method
      • Update Payment Address
      • Invoices
      • Terminate Subscription
    • Context Services
      • Weather Forecast
      • Solar Production Forecast
      • Power Consumption Forecast
      • Power Generation Forecast
    • Support Center
  • Technical Integration
    • Cloud-to-Cloud Integration
      • Platform On-boarding
      • Configure Notification Settings
        • Receive Notifications
          • iOS Notification Handling
      • MOOST API Integration
        • Request Access Token
        • Synchronize Buildings and Devices
          • Device Types
        • Forward Events
          • Event Types
            • Device Status
            • Charging Modes
            • Switch State
        • Notifications and Interactions
          • Return Notification Interaction
  • Best Practices
    • FAQ
    • User Acceptance Testing
  • Policies
    • Security Policy
    • Privacy Policy
Powered by GitBook

© 2025 MOOST AG

On this page
  • Description
  • Signatures
  • Number/Event | Text
  • Time | Text
  • Timespan | Text
  • Timespan | '(ADAPTIVE|SECONDS|MINUTES|HOURS|DAYS):(WORD|SYMBOL)'
  • Examples
Export as PDF
  1. Platform Manual
  2. Rules
  3. Rule Language
  4. Operations

Format

PreviousNOTNextAttribute Accessor

Last updated 1 year ago

Description

Formats numbers, time and timestamp.

Format on Vector will result in a comma-separated list of formatted values. E.g.: Device Link Car, Fronius Symo

Format on GroupedScalar will result in a comma-separated list of group identifier, double-quote and formatted value; the group identifier is rendered as device name, if grouped by device, else the time span index is taken. E.g.: 'Device Link Car': 1035, 'Fronius Symo': 8012

Format on GroupedVector will result in a slash-separated list of group identifier, double-quote and comma-separated formatted values; the group identifier is rendered as device name, if grouped by device, else the time span index is taken. E.g.: 'Device Link Car': 1035, 2012, 3097 / 'Fronius Symo': 8012

Signatures

#scalar-vector-groupedscalar-groupedvector-less-than-number-event-greater-than-or-scalar-less-than-te

#scalar-vector-groupedscalar-groupedvector-less-than-time-greater-than-or-scalar-less-than-text-great

#scalar-vector-groupedscalar-groupedvector-less-than-timespan-greater-than-or-scalar-less-than-text-g

#scalar-vector-groupedscalar-groupedvector-less-than-timespan-greater-than-or-adaptive-or-seconds-or

Number/Event | Text

Scalar<Number/Event> | Scalar<Text> → Scalar<Text>
Vector<Number/Event> | Scalar<Text> → Scalar<Text>
GroupedScalar<Number/Event> | Scalar<Text> → Scalar<Text>
GroupedVector<Number/Event> | Scalar<Text> → Scalar<Text>

Format pattern semantic, see


Time | Text

Scalar<Time> | Scalar<Text> →  Scalar<Text>
Vector<Time> | Scalar<Text> →  Scalar<Text>
GroupedScalar<Time> | Scalar<Text> →  Scalar<Text>
GroupedVector<Time> | Scalar<Text> →  Scalar<Text>

Timespan | Text

Scalar<Time> | Scalar<Text> →  Scalar<Text>
Vector<Time> | Scalar<Text> →  Scalar<Text>
GroupedScalar<Time> | Scalar<Text> →  Scalar<Text>
GroupedVector<Time> | Scalar<Text> →  Scalar<Text>

Timespan | '(ADAPTIVE|SECONDS|MINUTES|HOURS|DAYS):(WORD|SYMBOL)'

Scalar<Time> | '(ADAPTIVE|SECONDS|MINUTES|HOURS|DAYS):(WORD|SYMBOL)' →  Scalar<Text>
Vector<Time> | '(ADAPTIVE|SECONDS|MINUTES|HOURS|DAYS):(WORD|SYMBOL)' →  Scalar<Text>
GroupedScalar<Time> | '(ADAPTIVE|SECONDS|MINUTES|HOURS|DAYS):(WORD|SYMBOL)' →  Scalar<Text>
GroupedVector<Time> | '(ADAPTIVE|SECONDS|MINUTES|HOURS|DAYS):(WORD|SYMBOL)' →  Scalar<Text>

Format pattern semantic

Value
Description

ADAPATIVE

Means that it chooses the time unit automatically depending on the value size

SECONDS

Redners the value in seconds.

MINUTES

Renders the value in minutes.

HOURS

Renders the value in hours.

DAYS

Renders the value days.

WORD

Is in the word form (e.g. Hours)

SYMBOL

Is in the abbreviation of the unit (e.g. h)

Examples

Format the Result of the AVG($Consumption) function (which is a Scalar<Number) in format '#,##0'.

AVG($Consumption) | '#,##0'

Format the Timestamp of the $Event (which is Scalar<Event>) as hours and minutes.

$Event::Timestamp | 'HH:mm'

Fromat the resulting Timestamp as Hours suffixed with the word Hours.

(now - $Event::Timestamp) | 'HOURS:WORD'

Format pattern semantic, see

Format pattern semantic, see

Java's DecimalFormat
Java's SimpleDateFormat
Java's SimpleDateFormat