Block: Arithmetic โ
Type: io_math_arithmetic
Perform mathematical calculations using sensor data, feed values, or any numbers in your Actions. Perfect for creating custom formulas like calculating averages, converting units (Celsius to Fahrenheit), computing percentages, or building complex calculations from multiple data sources.
Fields โ
Op โ
Choose the mathematical operation to perform:
+: Addition: Combine two numbers (e.g., 25 + 5 = 30). For totaling values, adding offsets, or combining multiple sensor readings into sums.-: Subtraction: Remove B from A (e.g., 30 - 5 = 25). For calculating differences, finding deltas between readings, or subtracting baseline values.x: Multiplication: A times B (e.g., 6 x 4 = 24). For unit conversions, scaling values, calculating areas/volumes, or applying multiplication factors./: Division: A divided by B (e.g., 20 รท 4 = 5). For calculating averages, ratios, percentages, or converting between different unit scales.%: Modulo: The remainder of A divided by B (e.g., 5 % 2 = 1). For determining if one number divides evenly by another, or working with the remainder directly.^: Exponentiation: A raised to the power of B (e.g., 2^3 = 8). For advanced calculations, exponential growth models, or complex mathematical formulas.
Inputs โ
A โ
The first number in your calculation (left side). Examples: temperature reading (72.5), feed value, sensor data, or results from other calculations. Non-numeric values will be automatically converted to numbers where possible.
Compatible Blocks (click to expand)
Get Variable
Retrieve the value stored in a variable that was previously set using a Set Variable block.
Multiline Text
Create formatted text content with multiple lines, paragraphs, and line breaks.
Text
Enter any text content for use in your Actions - words, phrases, device commands, or messages.
Text Template
Create dynamic, personalized messages by combining static text with live data from your IoT system.
Join Text
Join two pieces of text into one combined string.
Text Compare
Compare two text values using different comparison operations.

Weather
Fetch the current or forecast weather conditions at the specified location.

Air Quality
Fetch current or forecast air quality conditions at the specified location using Open-Meteo Air Quality API.
Round/Floor/Ceiling
Convert decimal numbers to whole numbers using different rounding strategies.
Number
Enter any numerical value for use in your IoT Actions - whole numbers, decimals, positive, or negative.

Map
Transform sensor readings and data values by scaling them from one number range to another.

Constrain
Keep any number within specified minimum and maximum boundaries.
Compare Numbers
Build mathematical conditions by comparing any two numerical values in your Action logic.
Arithmetic
Perform mathematical calculations using sensor data, feed values, or any numbers in your Actions.

Logic Operation
Combine multiple conditions to create sophisticated decision logic in your Actions.
Negate
Flip any condition to its opposite - turns true into false and false into true.
Boolean
A simple true or false value for building logic conditions and controlling digital outputs.
Get Feed Value
Resolves to the last value of this feed or component, always a String.

JSONPath Query
Extract specific values from JSON data using JSONPath query syntax.
B โ
The second number in your calculation (right side). Examples: conversion factors (1.8 for temp conversion), target values (75 for comparison), other sensor readings, or mathematical constants. Also automatically converted to numbers.
Compatible Blocks (click to expand)
Get Variable
Retrieve the value stored in a variable that was previously set using a Set Variable block.
Multiline Text
Create formatted text content with multiple lines, paragraphs, and line breaks.
Text
Enter any text content for use in your Actions - words, phrases, device commands, or messages.
Text Template
Create dynamic, personalized messages by combining static text with live data from your IoT system.
Join Text
Join two pieces of text into one combined string.
Text Compare
Compare two text values using different comparison operations.

Weather
Fetch the current or forecast weather conditions at the specified location.

Air Quality
Fetch current or forecast air quality conditions at the specified location using Open-Meteo Air Quality API.
Round/Floor/Ceiling
Convert decimal numbers to whole numbers using different rounding strategies.
Number
Enter any numerical value for use in your IoT Actions - whole numbers, decimals, positive, or negative.

Map
Transform sensor readings and data values by scaling them from one number range to another.

Constrain
Keep any number within specified minimum and maximum boundaries.
Compare Numbers
Build mathematical conditions by comparing any two numerical values in your Action logic.
Arithmetic
Perform mathematical calculations using sensor data, feed values, or any numbers in your Actions.

Logic Operation
Combine multiple conditions to create sophisticated decision logic in your Actions.
Negate
Flip any condition to its opposite - turns true into false and false into true.
Boolean
A simple true or false value for building logic conditions and controlling digital outputs.
Get Feed Value
Resolves to the last value of this feed or component, always a String.

JSONPath Query
Extract specific values from JSON data using JSONPath query syntax.