Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Calculate Total Three-Phase Power from Phase Readings

  • Calculated Field
  • 1 install
  • v1.0.0
  • Nov 13, 2026
  • MIT license
  • v4.3+

Add up L1, L2 and L3 active power into one total for three-phase energy meters, power analyzers, motors, chillers, EV chargers and switchboards. Gives one key for load dashboards, peak demand alarms and energy reports instead of three.

Type
  • Simple
Category
  • Energy
  • Custom Formula
Use Cases
  • Smart Energy
  • Smart Metering
  • Industrial Automation
  • Smart Building

Who it’s for

Energy managers, facility engineers and electricians asking “what is the total load on this three-phase meter?”, “how much power does the whole motor or chiller draw?”, “what is the building’s demand right now?” — when the meter reports each phase on its own and every dashboard, alarm and report has to add the three readings again.

What it does

Reads the latest powerL1, powerL2 and powerL3 telemetry, adds them, and writes the sum as totalPower:

total-three-phase-power

The result keeps the unit of the inputs: watts in, watts out. When the inputs are active power per phase, totalPower is the total active power of the three-phase load.

The field waits until all three keys have arrived at least once, so a missing phase never shows up as a total that is a third too low. With Use latest timestamp on, totalPower gets the time of the newest phase reading rather than the time the server computed it, so the total lines up with the phase values on a chart.

Once totalPower is published, dashboards, alarm rules and other calculated fields can read it like any other telemetry key.

How to customize

  • To use this on your meter’s keys — change the Time series key on the phaseL1, phaseL2 and phaseL3 arguments (e.g. powerL1 → activePowerA).
  • To rename the output — change the output Time series key from totalPower to your own key (e.g. totalActivePower).
  • To add up energy per phase instead of power — set the three Time series key values to your per-phase energy keys, rename the output to a key such as totalEnergy, and set Decimals by default to 2.
  • To add up phases that your meter reports in kW — set Decimals by default to 2, so the total keeps its decimals (4.21 + 4.15 + 4.31 shows 12.67, not 13).
  • To publish the total in kW — change the Expression to (phaseL1 + phaseL2 + phaseL3) / 1000 and set Decimals by default to 2.
  • To timestamp the result with server time — turn off Use latest timestamp.
  • To filter, transform, or forward the result to external systems — switch Strategy to Process via Rule Chains. Rule nodes then receive the value and can drop it, change it, save it conditionally, or push it to an external system.

See also

If your meter reports voltage, current and power factor for each phase but not its power, install the template below once per phase. After each install, give the copy its own name (for example Phase L1 power), use that phase’s input keys, and rename the outputs in the script so the phase writes its own keys (for example powerL1). Then add the three results with this field:

Active and Reactive Power Calculation Dmytro Shvaika

Share Your Calculated Field with the Community

Built a useful data transformation? Export it as a JSON from ThingsBoard and publish it to the IoT Hub. Share it with thousands of ThingsBoard developers worldwide.