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
  • Literals
  • Variables
  • Values
  • Functions
  • Operations
  • Brackets
Export as PDF
  1. Platform Manual
  2. Rules
  3. Rule Language

Syntax

In this example we see already all core elements of the language.

In the following chapters you see many more examples, and all details about what kind of functions and operations exist, and how you can compose the data.

Example of a condition term:

$GridPowerConsumption > 500 AND ($CarChargingMode = 0 OR $CarChargingMode = 4) AND $IsLowTariffHours = 0

Example of a message term:

"Sie beziehen aktuell " + ($GridPowerConsumption / 1000) + "kW vom Netz."

Following syntax base components exist:

Literals

Variables

Example

$GridPowerConsumption

Example of a variable referring to the dataset with name "PowerConsumption"

Values

Example

1.5

Example of a number value

"it is cold"

Example of a text value

30min

Example of a timespan value

now

Example of a time value

Functions

Example

AVG($PowerConsumption)

Example for calculating the average

Operations

Example

1.2 * 42

Example for multiplying two numbers

Brackets

Brackets may be needed to control the resolution order of the terms in the expression. This is very familiar to us of course in mathematical terms:

Example

((4 + 0.5) / (4 - 0.5)) * 2
PreviousRule LanguageNextData Types

Last updated 10 months ago